0
Enyone tell me how to print 1to10numbers using for loop
7 Answers
+ 1
Not in the long run.
Because if you let us do all your homework you won't learn anything.
+ 1
Swathi Thiyagu try to make lot of efforts first, and think of, how can you tell someone to walk a stair case right to the 10th place, and learn how to use the for loop itself
0
You can print the numbers with loop. You can see it in the example. Hope it helps you.
https://code.sololearn.com/c4moZ2N04ddw/?ref=app
0
You didn't specify in which language. However, here's your code in C++
for (int x = 1; x <= 10; x++) {
cout<<"The value is: "<<x<<endl;
}
0
Thank u its realy helpfull for me
0
Ok cool
0
Swathi Thiyagu, you are welcome 😉