0
How to make program, whose print numbers by 1 for 200?
15 ответов
+ 6
Please specify relevant language in your tags 👍
+ 4
Jan Markus
Thanks for informing, but they shouldn't be expecting thread readers to go and check the OP's profile just to know this information. When they take multiple courses, checking their profile wouldn't help to clear the doubt.
And just to be clear, tagging the language helps make the search function better 👍
+ 4
#J A V A
IntStream.range(1,201).forEach(System.out::print);
+ 2
For i in range(1,201):
print(i)
+ 1
for i in range(1,201):
print(i)
+ 1
for i in range(1,201) :
print(i)
+ 1
#include <iostream>
usinng namespace std;
int main (){
for(int i=1;i <=200;i++){
cout <<i <<endl;
}
return 0;
}
GOOD LUCK !!!
+ 1
Jan Markus
Is there a problem with anything I wrote here? or am I the problem perhaps?
* Quoting your reply:
"I am afraid that you can no longer write anything here without first consulting your lawyer ..."
Wow! you are telling me what to do in SoloLearn sir?
FYI I will not stop reminding people not to abuse tags, just because someone tell me "consult your lawyer"
You want to lay down the details what happens if I don't consult my lawyer, sir? you gonna sue me?
(Edit)
And please inform this fool me what "know-it-all" was all about.
0
Jan Markus thx for noticing it
0
for( int i=1; i<=200; i++)
{ System.out.print( i)
}
0
print number 1 to 200
int i = 1;
int num =200;
do{
System.out.println (i) ;
i++;
} while (i<=num) ;
0
for i in range(200):
print (i+1)
works for python
0
In c programming
#include<stdio.h>
int main()
{
int i=0;
for(i=1;i<=200;i++)
printf("%d",i);
}
0
#include <iostream>
using namespace std;
int main()
{
for(int i = 0; i<=201; i++)
{
cout <<i <<endl;
}
return 0;
}
0
If you want it for c:
for( i=1; i<=200; i++) {
printf("%d\n", i)
}
If you want it for python:
for i in range(1,201):
print(i)