ProgIng - Programación en Ingeniería
Loading...
Searching...
No Matches
Ejemplo004.c File Reference
#include <stdio.h>
Include dependency graph for Ejemplo004.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 3 of file Ejemplo004.c.

4{
5 float T1, T2, T3, T4, T;
6 int B;
7 scanf("%f %f %f %f %f", &T1, &T2, &T3, &T4, &T);
8 B = ((T4>T)<<3)|((T3>T)<<2)|((T2>T)<<1)|(T1>T);
9 switch(B)
10 {
11 case 15:
12 printf("Muy ");
13 case 14:
14 printf("Baja");
15 break;
16 case 12:
17 printf("Templada");
18 break;
19 case 0:
20 printf("Muy ");
21 default:
22 printf("Alta");
23 }
24 printf(".\n");
25 return 0;
26}