CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
//your code goes here
while (n>0){
if(n % 5 == 5%5){
cout << n << endl;
cout << "beep" << endl;
n--;
}
cout << n << endl;
n--;
}
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run