Advertisement
Shickcard

Questão 3

Dec 15th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. Program Q3;
  2.  
  3. type
  4. Func = record
  5. nome, endereco:string;
  6. cod,telefone:integer;
  7. end ;
  8.  
  9. Var File: Func ;
  10. cont:char;
  11.  
  12. Begin
  13. repeat
  14.  
  15. writeln('Insira o nome do cliente: ');
  16. readln(File.nome);
  17.  
  18. writeln('Insira o endereço do cliente: ');
  19. readln(File.endereco);
  20.  
  21. writeln('Insira o Código de Área do telefone do cliente: ');
  22. textcolor(yellow);
  23. writeln('Exemplo: 82');
  24. readln(File.cod);
  25.  
  26. textcolor(10);
  27. writeln('Insira o telefone do cliente: ');
  28. textcolor(green);
  29. writeln('Exemplo: 32230810');
  30. readln(File.telefone);
  31.  
  32. textcolor(red);
  33. writeln('');
  34. writeln('___________________________________');
  35. textcolor(10);
  36. writeln('Nome: ', File.nome);
  37. writeln('Endereço: ', File.endereco);
  38. //writeln('DDD: ', File.cod);
  39. writeln('Telefone: ', '(',File.cod, ') ',File.telefone);
  40. textcolor(red);
  41. writeln('___________________________________');
  42.  
  43. writeln('');
  44. textcolor(lightblue);
  45. writeln('Deseja continuar? [S/N]');
  46. readln(cont);
  47. textcolor(10);
  48.  
  49. until upcase(cont) = 'N';
  50.  
  51. writeln('Obrigado por usar um programa criado por Shickcard Team');
  52.  
  53. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement