write a program in c++ to print first 100 even number
Answers
Answered by
10
Answer:
#include <iostream>
using namespace std;
int main() {
for(int i=1;i<=200;i++)
if(i%2==0)
cout<<i<<endl;
}
Another Way(Easiest):-
#include <iostream>
using namespace std;
//Easiest Way
int main() {
for(int i=2;i<=200;i+=2)
cout<<i<<endl;
}
TheMoonlìghtPhoenix:
Wow! \0o0/
Similar questions
English,
19 days ago
Physics,
1 month ago
Math,
1 month ago
Economy,
8 months ago
Social Sciences,
8 months ago