Cuenta atrás. C++ ¡Help! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Cuenta atrás. C++ ¡Help!

31st Mar 2021, 9:53 PM
The Lion Alex 1
The Lion Alex 1 - avatar
4 Answers
+ 7
solución! Espero haberles ayudado :) #include <iostream> using namespace std; int main(){ int n; cin >>n; for (int i= n; i >= 1; i--) { cout << i << endl; if(i%5==0){ cout << "Beep" << endl; } } return 0; }
22nd May 2021, 7:49 PM
Yerssin Pérez
Yerssin Pérez - avatar
0
#include <iostream> using namespace std; int main() { int n; cin >> n; //tu código va aquí return 0; }
1st Apr 2021, 12:24 AM
The Lion Alex 1
The Lion Alex 1 - avatar
- 2
me pueden ayudar con el proyecto titulado cuentra atrás
13th Apr 2021, 12:32 AM
JESUS EMMANUEL SAUCEDO CARDENAS
JESUS EMMANUEL SAUCEDO CARDENAS - avatar
- 11
Necesitas hacer una app de cuenta atrás. Dado un número N como entrada, genera números de N a 1 en líneas separadas. Además, cuando el número actual de la cuenta atrás es un múltiplo de 5, la app debería producir "Beep". Ejemplo de entrada: 12 Ejemplo de salida: 12 11 10 Beep 9 8 7 6 5 Beep 4 3 2 1
1st Apr 2021, 12:25 AM
The Lion Alex 1
The Lion Alex 1 - avatar