0
Can somebody give me ex: of input in c++
Begginer
6 Réponses
+ 1
Many ways
You can use cin,gets.
If you use scanf it will take time complexity more than that of cin. Use cin for better input.
Ex:-
Int a,b;
Cin>>a>>b;
If it is string
String s;
Gets(s)
You can do it or cin>>s is also valid its upto you how you do it.
+ 1
Aysha provided you the answer but before that you need to declare the variables
+ 1
Aysha Yes he must be knowing as a whole I told