Considere o programa em C abaixo: #include #include main( ) { int P,R; scanf("%d",&P); R=P%4; switch (...
Considere o programa em C abaixo: #include #include main( ) { int P,R; scanf("%d",&P); R=P%4; switch (R) { case 0: printf("%.0d",(P/4)); break; case 1: printf("%d",R); break; case 2: printf("%.0d",(R/2)); break; case 3: printf("%.0d",P); break; } } Sabendo que será digitado o valor 30, o resultado que será apresentado para o usuário será: Escolha uma opção: a. 1. b. 4. c. 3. d. 0. e. 2.]
Compartilhar