0

Can somebody give me ex: of input in c++

Begginer

12th May 2021, 4:32 PM
Asher
Asher - avatar
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.
13th May 2021, 3:53 AM
Vishal Pandey
+ 1
Aysha provided you the answer but before that you need to declare the variables
12th May 2021, 5:14 PM
Atul [Inactive]
+ 1
Aysha Yes he must be knowing as a whole I told
12th May 2021, 5:40 PM
Atul [Inactive]