Im new in c++ and i want help in a code , plzz help | SoloLearn: Learn to code for FREE!

+10

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

7/13/2020 2:37:57 AM

Unknown 🖤/*Inactive */

11 Answers

New Answer

+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

+8

Thanx akr , chaoticdawg and heartless 😊

+5

+4

int age; cin>>age;

+2

Good you code

+1

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 .

+1

https://code.sololearn.com/cB3F31Dy2B8C/?ref=app

+1

https://code.sololearn.com/ch79892ZrZgP/?ref=app I've found some mistakes in it

+1

https://code.sololearn.com/cYdn3IZtPbo5/?ref=app

+1

Good you code