Advertisement
bertao

EX 07 PRO DIA 21/08

Aug 15th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main(){
  4. float custo,ingresso,convites;
  5. printf("digite o custo do espetaculo:");
  6. scanf("%f",&custo);
  7. printf("digite o preço do ingresso:");
  8. scanf("%f",&ingresso);
  9.  
  10. convites = custo/ingresso;
  11. printf("deverao ser vendidos %.1f convites",convites);
  12. return 0;
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement