Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main(){
- int num1, opt, sim1, nao2;
- printf("digite o primeiro numero");
- scanf("%d",&num1);
- printf("voce é socio?\n");
- printf("1 - sim \n");
- printf( "2 - nao \n");
- scanf("%d",&opt);
- switch(opt){
- case 1: printf("voce é socio");
- scanf("%d",&sim1);break;
- case 2: printf("voce nao é socio");
- scanf("%d",&nao2);break;
- }
- if(num1=>60)
- {
- printf("voce recebera desconto");
- }
- if(num1<60)
- {
- printf("voce nao recebera desconto");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement