0
Need a little push in the right direction. Lesson 22 Counting Down. Just a hint please.
#include <iostream> using namespace std; int main() { int n; int x; cin >> n; //your code goes here while (n >= 1) { cout << n << endl; x = n % 5; if (x = 0) { cout << "beep" << endl; } n--; } return 0; }
1 Odpowiedź
0
Ahh crap, thank you. that one always gets me.