Schknheit

Untitled

Mar 4th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.    
  5.     float q,r,c;
  6.     printf("Entre com a quantidade de parafusos: \n");
  7.     scanf("%f",&q);
  8.     c = (0.05 * q) + 1200;
  9.     printf("O custo e: %f\n",c);
  10.     r = 0.10 * q;
  11.     printf("A receita e: %f",r);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment