Advertisement
bertao

venda 2

Apr 3rd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include<stdio.h>
  2. int main (void){
  3.  
  4. float venda , premio;
  5.  
  6. printf("quanto vende:\n",venda);
  7. scanf("%f",&venda);
  8.  
  9. premio = venda /10;
  10.  
  11. printf("valor do premio:%.2f \n",premio);
  12.  
  13. if(premio > 2000){
  14. printf("parabens otario");
  15. }
  16. else{ printf("se eh um cabaรงo");
  17. }
  18. return 0 ;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement