Input on c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
2 Answers
+ 1
Hey Benjamin, here is an example of how to use c++ input #include <iostream> using namespace std; int main(){ int myNumber; cout << "Input your number"; cin >> myNumber; cout << "Your number is " << myNumber; return 0; }
20th Aug 2017, 6:39 PM
S C
0
These codes with the oppropreat direction on any system work c++ include system ("process. H") ; Into main () { Process System ("cls") ; } Return 0;
20th Aug 2017, 5:32 PM
Benjamin Rogers
Benjamin Rogers - avatar