AYUDA EN CONDICIONAL IF
Publicado por DIMAS (1 intervención) el 19/10/2019 07:09:01
clude <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
int main(void) {
int num1, num2, num3;
int n;
printf("Dame el numero 1");
scanf("%d",&num1);
printf("Dame el numero 2");
scanf("%d",&num2);
printf("Dame el numero 3");
scanf("%d",&num3);
if(num1>num2) {
if(num1>num3) {
n=num1
}
else{
n=num3;
}
}
else{
n=num2;
}
}
Valora esta pregunta


0