Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <stdio.h>
- # include <stdlib.h>
- int main () {
- float valor,produto;
- int idade,cidade,tempoh;
- char y,n;
- system ("color 3f");
- system ("cls");
- printf ("\t===============================================================\n");
- printf ("\t=========================Legal Rent a Car======================\n");
- printf ("\t===============================================================\n\n");
- printf ("Informe sua idade!!\n");
- scanf ("%d",&idade);
- if (idade < 20) {
- system ("cls");
- printf ("\t===============================================================\n");
- printf ("\t=========================Legal Rent a Car======================\n");
- printf ("\t===============================================================\n\n");
- printf ("A Legal Rent a Car somente disponibiliza aluguel de carros para maiores de 21 anos!!");
- }
- else if (idade >=21) {
- system ("cls");
- printf ("\t===============================================================\n");
- printf ("\t=========================Legal Rent a Car======================\n");
- printf ("\t===============================================================\n\n");
- printf ("Voce tem sua habilitacao a mais de 2 anos?\n1-Sim\n2-Nao\n");
- scanf ("%d",&tempoh);
- switch (tempoh) {
- case 1:
- system ("cls");
- printf ("\t===============================================================\n");
- printf ("\t=========================Legal Rent a Car======================\n");
- printf ("\t===============================================================\n\n");
- printf ("Voce faz parte de uma ONG?");
- break;
- case 2:
- system ("cls");
- printf ("\t===============================================================\n");
- printf ("\t=========================Legal Rent a Car======================\n");
- printf ("\t===============================================================\n\n");
- printf ("nao tenho habilitação");
- break;
- default:
- printf ("DEU BOM");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement