+ 1

Write a program that prints from 0-50 excluding 5 using dev c++

2nd Jul 2017, 11:14 PM
Chinonso
2 Réponses
+ 3
Edit: ups i read it wrong... so should print everything from 0 to 50 except for 5 #include <iostream> using namespace std; int main() { for(int i = 0; i < 51; i++){ if(i != 5){ cout << i << endl; } } return 0; }
2nd Jul 2017, 11:31 PM
BLANK
BLANK - avatar
3rd Jul 2017, 12:41 AM
Manual
Manual - avatar