Guys What is my Mistake | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Guys What is my Mistake

Hi guys I am a new learner in C++ my code Didn't worked how it should Plzzz see what is the problem https://code.sololearn.com/cn8jtI4n95d7/?ref=app Plzzz see And comment

2nd Sep 2020, 6:54 AM
Gamer Stream
Gamer Stream - avatar
4 Answers
2nd Sep 2020, 7:34 AM
The future is now thanks to science
The future is now thanks to science - avatar
+ 4
First read basics you can visit naresh IT its a best tutorial for cpp. You define rollno variable which type is int here don't need to use round bracket so remove and you put semicolon after rollno and assigning value 25 which is completely wrong and in cout statement you printing value of rollno if u will write in double quotes then it will print string for value u have to remove double quotes. #include <iostream> using namespace std; int main() { int rollno=25; cout<<"rollno"<<rollno; return 0; }
2nd Sep 2020, 7:41 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Start learn C++ int main() { int rollno=25; cout<<rollno; return 0; } Learn one language at a time.
2nd Sep 2020, 6:57 AM
Vadivelan
0
I am learning C++ but the code Didn't worked see the problem plzzzz
2nd Sep 2020, 6:59 AM
Gamer Stream
Gamer Stream - avatar