nikolas_serafini

Lista 2 - Exercício 46

May 28th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. int main()
  6. {
  7.     float index;
  8.  
  9.     printf("Entre com o indice de poluicao da empresa : \n"); scanf("%f",&index);
  10.  
  11.     if ((index>=0.05)&&(index<=0.29)) printf("CONDICAO ACEITAVEL\n");
  12.     else if ((index>=0.3)&&(index<0.4)) printf("SUSPENDER ATIVIDADES DE GRUPO 1\n");
  13.     else if ((index>=0.4)&&(index<0.5)) printf("SUSPENDER ATIVIDADES DE GRUPOS 1 E 2\n");
  14.     else printf("SUSPENDER TODAS AS ATIVIDADES\n");
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment