+ 3
how to take these input sequentially by one variable...??? or how to check the given data integer or string.????
18 VODKA COKE 19 17
4 Answers
+ 5
You will have to read everything as a string, first of all.
Then you may check your data's type like I have done in this code:
https://code.sololearn.com/cnxi7DID8NnK/?ref=app
And only after determination you may store it in the normal int, or char* variables...
Just delete the cases which you do not need in the program itself...
+ 3
Who is disliking my answers?
Please tell me the reason atleast. Are my answers incorrect? Not helpful?
+ 1
user give me these 5 input..i have to compare : integer value with an integer and string value with a string...how i do this..
input:
18
VODKA
COKE
19
17
0
hi