nikolas_serafini

Lista 1 - Exercício 19

May 21st, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7.     float salmin,houses;
  8.  
  9.     printf("Entre com o salario minimo atual : \n"); scanf("%f",&salmin);
  10.  
  11.     houses = 10000000/(3*salmin);
  12.  
  13.     printf("Sera possivel construir %f casas populares.\n",floor(houses));
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment