Skip to content

Commit 4063e8b

Browse files
committed
Inputs
1 parent 3978058 commit 4063e8b

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
lines changed

Ejercicios/04_MasVariables/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#include <stdio.h>
2-
#include <stdlib.h>
3-
#include <stdbool.h>
42

53
int main()
64
{

Ejercicios/05_Inputs/05_Inputs.cbp

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<CodeBlocks_project_file>
3+
<FileVersion major="1" minor="6" />
4+
<Project>
5+
<Option title="05_Inputs" />
6+
<Option pch_mode="2" />
7+
<Option compiler="gcc" />
8+
<Build>
9+
<Target title="Debug">
10+
<Option output="bin/Debug/05_Inputs" prefix_auto="1" extension_auto="1" />
11+
<Option object_output="obj/Debug/" />
12+
<Option type="1" />
13+
<Option compiler="gcc" />
14+
<Compiler>
15+
<Add option="-g" />
16+
</Compiler>
17+
</Target>
18+
<Target title="Release">
19+
<Option output="bin/Release/05_Inputs" prefix_auto="1" extension_auto="1" />
20+
<Option object_output="obj/Release/" />
21+
<Option type="1" />
22+
<Option compiler="gcc" />
23+
<Compiler>
24+
<Add option="-O2" />
25+
</Compiler>
26+
<Linker>
27+
<Add option="-s" />
28+
</Linker>
29+
</Target>
30+
</Build>
31+
<Compiler>
32+
<Add option="-Wall" />
33+
</Compiler>
34+
<Unit filename="main.c">
35+
<Option compilerVar="CC" />
36+
</Unit>
37+
<Extensions>
38+
<lib_finder disable_auto="1" />
39+
</Extensions>
40+
</Project>
41+
</CodeBlocks_project_file>

Ejercicios/05_Inputs/main.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#include <stdio.h>
2+
3+
int main()
4+
{
5+
printf("Entrada de datos Parte 2\n\n");
6+
7+
int enteroA;
8+
float flotanteA;
9+
char caracterA;
10+
11+
12+
printf("Ingresa el valor de enteroA es: ");
13+
scanf("%i", &enteroA);
14+
15+
printf("Ingresa el valor de flotanteA es: ");
16+
scanf("%f", &flotanteA);
17+
18+
printf("Ingresa el valor de caracterA es: ");
19+
scanf(" %c", &caracterA);
20+
21+
printf("\n\n");
22+
printf("enteroA: %d\n", enteroA);
23+
printf("flotanteA: %f\n", flotanteA);
24+
printf("caracterA: %c\n", caracterA);
25+
26+
return 0;
27+
}

0 commit comments

Comments
 (0)