Computer Science, asked by bc7511797, 20 hours ago

Wap to print 1st 20 even numbers in c++ using while loop.​

Answers

Answered by samarthkrv
0

Answer:

#include <iostream>

using namespace std;

int main()

{

   int i = 0;

       while(i <= 20){

           if(i%2 == 0){

               cout << i << " ";

           }

           i++;

       }

   return 0;

}

Explanation:

Similar questions