+ 1

In C++

when I use " cin>>a; cout<<a; " the output will(after I give number 3 for variable a) " 3 3 " the question is, can I "using certain code" let the output like this " 33 "

20th Feb 2017, 9:31 PM
‫عيسى عبد العزيز‬‎
‫عيسى عبد العزيز‬‎ - avatar
2 Answers
+ 1
Try using: cout << a << a;
20th Feb 2017, 10:05 PM
Fabulator
0
You can use " system("cls") " to clear the console.
20th Feb 2017, 10:12 PM
Moein Ghandehari
Moein Ghandehari - avatar