AIM: Write a program to print Even number from 1 to 100 number using continue
statement.
Answers
Answered by
15
# include <iostream>
using namespace std;
int main()
{
int i;
for (i = 1; i < = 100; i + +)
{
if (i % 2 = = 1)
{
continue;
}
cout << i;
}
return 0;
}
Similar questions