Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void menuTipoChamada();
- void leiaTelefone();
- void desmembraNumero();
- int main(void){
- menuTipoChamada();
- return 0;
- }
- void menuTipoChamada(void){
- int op;
- long int numero;
- printf("Escolha o tipo de chamada a ser feito:\n");
- printf("1 - Para chamadas locais\n");
- printf("2 - Para chamadas locais á cobrar\n");
- printf("3 - Para Chamadas de longa distância\n");
- printf("4 - Para chamadas de longa distância á cobrar\n");
- scanf("%d", &op);
- return leiaTelefone();
- }
- void leiaTelefone(void){
- int op
- long int numero;
- switch(op){
- case 1: printf("Informe um número de telefone:\n");scanf("%ld", &numero);break;
- case 2: printf("Informe um número de telefone:\n");scanf("%ld", &numero);break;
- case 3: printf("Informe um número de telefone:\n");scanf("%ld", &numero);break;
- case 4: printf("Informe um número de telefone:\n");scanf("%ld", &numero);break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement