-
Lenguaje
Pascal
-
Descripción
Pide el número del mes y muestra su nombre.
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
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
program NombreDelMes;
uses crt;
var mes : integer;
begin
write ('Ingresa el valor de mes: ');
readln (mes);
if mes=1 then
begin
writeln ('Enero');
end;
if mes=2 then
begin
writeln ('Febrero');
end;
if mes=3 then
begin
writeln ('Marzo');
end;
if mes=4 then
begin
writeln ('Abril');
end;
if mes=5 then
begin
writeln ('Mayo');
end;
if mes=6 then
begin
writeln ('Junio');
end;
if mes=7 then
begin
writeln ('Julio');
end;
if mes=8 then
begin
writeln ('Agosto');
end;
if mes=9 then
begin
writeln ('Septiembre');
end;
if mes=10 then
begin
writeln ('Octubre');
end;
if mes=11 then
begin
writeln ('Noviembre');
end;
if mes=12 then
begin
writeln ('Diciembre');
end;
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.
uses crt;
var mes : integer;
begin
write ('Ingresa el valor de mes: ');
readln (mes);
if mes=1 then
begin
writeln ('Enero');
end;
if mes=2 then
begin
writeln ('Febrero');
end;
if mes=3 then
begin
writeln ('Marzo');
end;
if mes=4 then
begin
writeln ('Abril');
end;
if mes=5 then
begin
writeln ('Mayo');
end;
if mes=6 then
begin
writeln ('Junio');
end;
if mes=7 then
begin
writeln ('Julio');
end;
if mes=8 then
begin
writeln ('Agosto');
end;
if mes=9 then
begin
writeln ('Septiembre');
end;
if mes=10 then
begin
writeln ('Octubre');
end;
if mes=11 then
begin
writeln ('Noviembre');
end;
if mes=12 then
begin
writeln ('Diciembre');
end;
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.