+ 1
How can I ask for 2 numbers using the cin function in C++??
I am trying that but only ask for 1 num or not recognise the second one
3 Antworten
+ 6
cin>>var1>>var2 ;
+ 4
you can ask for a string input using a delimiter and then cast the string using your choice of number system. ie int, long, float, double
+ 2
thank you very much😊