Computer Science, asked by samaygangwal21, 1 month ago

write a program in c++ to print first 100 even number​

Answers

Answered by BrainlyProgrammer
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/
ExᴏᴛɪᴄExᴘʟᴏʀᴇƦ: Awesome ┏(^0^)┛
Similar questions