Im new in c++ and i want help in a code , plzz help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

13th Jul 2020, 2:37 AM
Dipendra
Dipendra - avatar
11 Answers
+ 15
https://code.sololearn.com/c8w97obJhYEx/?ref=app
13th Jul 2020, 2:42 AM
ÃKR
ÃKR - avatar
+ 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
13th Jul 2020, 2:44 AM
Shino
Shino - avatar
+ 9
Thanx akr , chaoticdawg and heartless 😊
13th Jul 2020, 1:43 PM
Dipendra
Dipendra - avatar
+ 6
Thank u A aa
14th Jul 2020, 3:59 PM
Dipendra
Dipendra - avatar
+ 5
int age; cin>>age;
13th Jul 2020, 2:40 AM
ChaoticDawg
ChaoticDawg - avatar
+ 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 .
14th Jul 2020, 4:30 AM
Raghvendra Singh chandel
Raghvendra Singh chandel - avatar
+ 2
Good you code
14th Jul 2020, 6:12 AM
А Аа
А Аа - avatar
14th Jul 2020, 6:11 AM
А Аа
А Аа - avatar
+ 1
https://code.sololearn.com/ch79892ZrZgP/?ref=app I've found some mistakes in it
14th Jul 2020, 5:09 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar
15th Jul 2020, 2:39 AM
А Аа
А Аа - avatar
+ 1
Good you code
15th Jul 2020, 2:39 AM
А Аа
А Аа - avatar