-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtanque
More file actions
89 lines (87 loc) · 2.13 KB
/
tanque
File metadata and controls
89 lines (87 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//CARGADO DE GASOLINA
//PROGRAMA 37
//05 DE JUNIO DEL 2018
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
int c;
float l;
char r[6],mp[7];
main ( )
{
system("coche.png");
system("pemex.png");
system("color 1f");
gotoxy(2,2);
printf("BIENVENIDO AL PROGRAMA 37");
gotoxy(2,3);
printf("LLENADO DE TANQUE");
gotoxy(2,4);
printf("PEMEX");
gotoxy(6,8);
printf("TECLEE EL TIPO DE GASOLINA QUE DESEA");
gotoxy(6,10);
printf("%c MAGNA",254);
gotoxy(6,11);
printf("%c PREMIUM",254);
gotoxy(6,13);
gets(mp);
if (strcmpi(mp,"magna")==0)
{
system("cls");
//REIMPRESION
system("color 1f");
gotoxy(2,2);
printf("BIENVENIDO AL PROGRAMA 37");
gotoxy(2,3);
printf("LLENADO DE TANQUE");
gotoxy(2,4);
printf("PEMEX, GASOLINA MAGNA");
//FINALIZA REIMPRESION
gotoxy(7,8);
printf("INGRESA LA CANTIDAD DE LITROS A CARGAR");
gotoxy(7,9);
scanf("%f",&l);
gotoxy(7,10);
printf(" %c INICIA %c LLENADO DE %.2f LITROS",254,254,l);
l=l*17.92;
gotoxy(7,12);
printf("PRECIO TOTAL %.2f , TOME SU COMPROBANTE\n",l);
c=0;
while (c<=100)
{
printf("LLENANDO TANQUE %c %c %c %d \n",220,220,220,c);
c=c+10;
}
}
if (strcmpi(mp,"premium")==0)
{
system("cls");
//REIMPRESION
system("color 1f");
gotoxy(2,2);
printf("BIENVENIDO AL PROGRAMA 37");
gotoxy(2,3);
printf("LLENADO DE TANQUE");
gotoxy(2,4);
printf("PEMEX, GASOLINA PREMIUM");
//FINALIZA REIMPRESION
gotoxy(7,8);
printf("INGRESA LA CANTIDAD DE LITROS A CARGAR");
gotoxy(7,9);
scanf("%f",&l);
gotoxy(7,10);
printf(" %c INICIA %c LLENADO DE %.2f LITROS",254,254,l);
l=l*19.4;
gotoxy(7,12);
printf("PRECIO TOTAL %.2f , TOME SU COMPROBANTE\n",l);
c=0;
while (c<=100)
{
printf("LLENANDO TANQUE %c %c %c %d \n",220,220,220,c);
c=c+10;
}
}
getch();
}