How to declare variables | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to declare variables

Which co de can I type in to declare variable "b" if "a=15" , when the output << a_b<<endl;

8th Jun 2019, 12:17 AM
Henry K. Ernst
Henry K. Ernst - avatar
2 Answers
+ 1
you use int there's C++ course in SoloLearn and it's fun to learn
8th Jun 2019, 7:11 AM
‎وائل عبد الحق‎
‎وائل عبد الحق‎ - avatar
0
int a = 15; int b = (something); Cout << a - b;
8th Jun 2019, 9:18 AM
gil gil