Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- using namespace std;
- int main(int argc, char** argv) {
- int opcao;
- do {
- printf("\n-------------------MENU------------------------");
- printf("\n Escolha a opcao");
- printf("\n ______________________________________________ ");
- printf("\n |1 - Informar venda diaria |");
- printf("\n |2 - Visualizar vendas diarias do mes |");
- printf("\n |3 - Calcular media mensal de vendas diarias |");
- printf("\n |4 - Sair |");
- printf("\n |____________________________________________|\n");
- scanf("\n%d", &opcao);
- printf("option -> %d\n", opcao);
- system("cls");
- switch (opcao)
- {
- case 1:
- printf("1!\n");
- break;
- case 2: printf("2!\n");
- break;
- case 3:
- printf("3!\n");
- break;
- case 4:
- printf("do nothing!\n");
- break;
- default: printf("\nOpcao invalida, tente de novo"); break;
- }
- } while (opcao != 4);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement