- 1

Write a program to count even numbers upto 50.

The program must be in C++ language.

19th Aug 2018, 2:44 AM
Siddhi Agarwal
2 odpowiedzi
+ 2
for(int i = 2; i <= 50; i++) { if(i%2==0) std::cout << i<< std::endl; }
19th Aug 2018, 2:58 AM
BlazingMagpie
BlazingMagpie - avatar
+ 1
this isnt a hard challenge.....
19th Aug 2018, 4:58 AM
Ole113
Ole113 - avatar