Quiz
A13 - Completa el código de decisión
This quiz has question types that open in the usual player.
Questions in this quiz (1)
1#Include <iostream>
using namespace std;
int main(void)
{
int [blank_start]hora[blank_end];
cout << "[blank_start]Introduzca una hora (entre 0 y 24):[blank_end] ";
cin >> hora;
[blank_start]if[blank_end] ((hora=[blank_start]0[blank_end]) and (hora<12))
cout<<"Buenos días\n";
[blank_start]else if[blank_end] ((hora>=12) and ([blank_start]hora<18[blank_end]))
cout<<"Buenas tardes\n";
else if (([blank_start]hora>=18[blank_end]) and (hora<[blank_start]24[blank_end]))
cout<<"Buenas noches\n";
[blank_start]else[blank_end]
cout<<"[blank_start]Hora no válida\n[blank_end]";
return 0;
}- Ahora
- Bif
- C0
- Delse if
- Ehora<18
- Fhora>=18
- G24
- Helse
- IHora no válida\n
- JIntroduzca una hora (entre 0 y 24):
Information
- Description
- Quiz on A13 - Completa el código de decisión, created by Milton Hernandez Garcia on 04/12/2020.
- Author
- Milton Hernandez Garcia
- Language
- Español
- Views
- 62
- History
- Created on 4 Dec 2020 · updated on 4 Dec 2020
- Tags
- Rating
- No ratings yet Rate this quiz