Wap to print 1st 20 even numbers in c++ using while loop.
Answers
Answered by
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
India Languages,
10 hours ago
English,
20 hours ago
Math,
20 hours ago
Social Sciences,
8 months ago
English,
8 months ago