0

#include <iostream> using namespace std; int main() { int myVariable = 10; cout << myVariable; return 0; }

in this what should be included in the code to get the output as :the output is 10. can i use string cancartenation here? bt it doesn't wrkd out..

20th Jun 2017, 10:24 AM
radhalakshmi arjun
4 Answers
+ 4
cout << "The output is: " << myVariable;
20th Jun 2017, 10:28 AM
CHMD
CHMD - avatar
+ 4
For string concatenation you have to overload + operator
20th Jun 2017, 9:47 PM
Keep in mind 😎
Keep in mind 😎 - avatar
0
int myVariable = 10;
31st May 2021, 4:26 PM
عبدالكريم قاسم عدنان موسى
عبدالكريم قاسم عدنان موسى - avatar
0
31st May 2021, 4:26 PM
عبدالكريم قاسم عدنان موسى
عبدالكريم قاسم عدنان موسى - avatar