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..
4 Respostas
+ 4
cout << "The output is: " << myVariable;
+ 4
For string concatenation you have to overload + operator
0
int myVariable = 10;
0