+ 15
Im new in c++ and i want help in a code , plzz help
If and else statement in c++ https://code.sololearn.com/c4iEyA6x1K26/?ref=app
11 Respuestas
+ 15
https://code.sololearn.com/c8w97obJhYEx/?ref=app
+ 12
https://code.sololearn.com/ca8CVlPbT0oq/?ref=app
I found three mistakes
int a = age we don't need that in c++ you can directly write int a or int age
second to take input use cin>>age;
Third if you include<<endl in double quotes then that will not work
+ 9
Thanx akr , chaoticdawg and heartless 😊
+ 6
Thank u A aa
+ 5
int age;
cin>>age;
+ 2
I found two mistake You can directly use int age; and int a; as a variable Secondly make sure whatever you want to print should be enclosed with in double quatation i.e cout <<"hey";
https://code.sololearn.com/c3PCWVE3pzuC/?ref=app
I hope this code help you .
+ 2
Good you code
+ 1
https://code.sololearn.com/ch79892ZrZgP/?ref=app
I've found some mistakes in it
+ 1
Good you code