Advertisement
junior5546

Untitled

Mar 25th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. void main(){
  5.  
  6. int num1, opt, sim1, nao2;
  7.  
  8.  
  9. printf("digite o primeiro numero");
  10. scanf("%d",&num1);
  11.  
  12. printf("voce é socio?\n");
  13. printf("1 - sim \n");
  14. printf( "2 - nao \n");
  15. scanf("%d",&opt);
  16.  
  17. switch(opt){
  18.     case 1: printf("voce é socio");
  19.     scanf("%d",&sim1);break;
  20.  
  21.     case 2: printf("voce nao é socio");
  22.     scanf("%d",&nao2);break;
  23. }
  24.  
  25. if(num1=>60)
  26.  
  27. {
  28.     printf("voce recebera desconto");
  29. }
  30.  
  31. if(num1<60)
  32.  
  33.  {
  34.      printf("voce nao recebera desconto");
  35.  }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement