[e-Book] Lógica da Programação - INFORMÁTICA

Page 36

LÓGICA DA PROGRAMAÇÃO ATIVIDADES COMPLEMENTARES _____________________________________________________________________

int m; printf("Digite um numero: "); scanf("%d", &m); switch (m) { case 1: case 2: case 3: printf("primeiro trimestre"); break; case 4: case 5: case 6: printf("segundo trimestre"); break; case 7: case 8: case 9: printf("terceiro trimestre"); break; case 10: case 11: case 12: printf("quarto trimestre"); break; default: printf("opção inválida");

Página 32


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.