SHARE
TWEET

Untitled

junior5546 Mar 25th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top