diff --git a/programs/printf-formats/main b/programs/printf-formats/main new file mode 100755 index 0000000..b705c1c Binary files /dev/null and b/programs/printf-formats/main differ diff --git a/programs/printf-formats/main-p-1-1 b/programs/printf-formats/main-p-1-1 new file mode 100755 index 0000000..98bba39 Binary files /dev/null and b/programs/printf-formats/main-p-1-1 differ diff --git a/programs/printf-formats/main-p-1-1.c b/programs/printf-formats/main-p-1-1.c new file mode 100644 index 0000000..e9ff506 --- /dev/null +++ b/programs/printf-formats/main-p-1-1.c @@ -0,0 +1,14 @@ +#include + +int main(void) { + int n; + double x; + + printf("Int n: "); scanf("%d", &n); + printf("Doble n: "); scanf("%f", &x); + + printf("Integer n is %f\n", n); + printf("Double percision floating point decimal x is %f\n", x); + + return 0; +} diff --git a/programs/printf-formats/main-p-1-2 b/programs/printf-formats/main-p-1-2 new file mode 100755 index 0000000..79f1055 Binary files /dev/null and b/programs/printf-formats/main-p-1-2 differ diff --git a/programs/printf-formats/main-p-1-2.c b/programs/printf-formats/main-p-1-2.c new file mode 100644 index 0000000..4e3281b --- /dev/null +++ b/programs/printf-formats/main-p-1-2.c @@ -0,0 +1,14 @@ +#include + +int main(void) { + int n = 10; + double x = 25.3; + + printf("Int n: "); scanf("%d", &n); + printf("Doble n: "); scanf("%f", &x); + + printf("Integer n is %lf\n", n); + printf("Double percision floating point decimal x is %f\n", x); + + return 0; +} diff --git a/programs/printf-formats/main-p-2-1 b/programs/printf-formats/main-p-2-1 new file mode 100755 index 0000000..106164c Binary files /dev/null and b/programs/printf-formats/main-p-2-1 differ diff --git a/programs/printf-formats/main-p-2-1.c b/programs/printf-formats/main-p-2-1.c new file mode 100644 index 0000000..6e3b34b --- /dev/null +++ b/programs/printf-formats/main-p-2-1.c @@ -0,0 +1,14 @@ +#include + +int main(void) { + int n; + double x; + + printf("Int n: "); scanf("%d", &n); + printf("Doble n: "); scanf("%f", &x); + + printf("Integer n is %d\n", n); + printf("Double percision floating point decimal x is %d\n", x); + + return 0; +} diff --git a/programs/printf-formats/main-p-2-2 b/programs/printf-formats/main-p-2-2 new file mode 100755 index 0000000..2bc25f9 Binary files /dev/null and b/programs/printf-formats/main-p-2-2 differ diff --git a/programs/printf-formats/main-p-2-2.c b/programs/printf-formats/main-p-2-2.c new file mode 100644 index 0000000..70a434c --- /dev/null +++ b/programs/printf-formats/main-p-2-2.c @@ -0,0 +1,14 @@ +#include + +int main(void) { + int n; + double x; + + printf("Int n: "); scanf("%d", &n); + printf("Doble n: "); scanf("%f", &x); + + printf("Integer n is %d\n", n); + printf("Double percision floating point decimal x is %lf\n", x); + + return 0; +} diff --git a/programs/printf-formats/main-p-3-1 b/programs/printf-formats/main-p-3-1 new file mode 100755 index 0000000..32e66a1 Binary files /dev/null and b/programs/printf-formats/main-p-3-1 differ diff --git a/programs/printf-formats/main-p-3-1.c b/programs/printf-formats/main-p-3-1.c new file mode 100644 index 0000000..1ff2db8 --- /dev/null +++ b/programs/printf-formats/main-p-3-1.c @@ -0,0 +1,14 @@ +#include + +int main(void) { + int n; + double x; + + printf("Int n: "); scanf("%f", &n); + printf("Doble n: "); scanf("%f", &x); + + printf("Integer n is %d\n", n); + printf("Double percision floating point decimal x is %f\n", x); + + return 0; +} diff --git a/programs/printf-formats/main-p-3-2 b/programs/printf-formats/main-p-3-2 new file mode 100755 index 0000000..b5f9d24 Binary files /dev/null and b/programs/printf-formats/main-p-3-2 differ diff --git a/programs/printf-formats/main-p-3-2.c b/programs/printf-formats/main-p-3-2.c new file mode 100644 index 0000000..159ffe1 --- /dev/null +++ b/programs/printf-formats/main-p-3-2.c @@ -0,0 +1,14 @@ +#include + +int main(void) { + int n; + double x; + + printf("Int n: "); scanf("%lf", &n); + printf("Doble n: "); scanf("%f", &x); + + printf("Integer n is %d\n", n); + printf("Double percision floating point decimal x is %f\n", x); + + return 0; +} diff --git a/programs/printf-formats/main-p-4-1 b/programs/printf-formats/main-p-4-1 new file mode 100755 index 0000000..7564b02 Binary files /dev/null and b/programs/printf-formats/main-p-4-1 differ diff --git a/programs/printf-formats/main-p-4-1.c b/programs/printf-formats/main-p-4-1.c new file mode 100644 index 0000000..7a85d70 --- /dev/null +++ b/programs/printf-formats/main-p-4-1.c @@ -0,0 +1,14 @@ +#include + +int main(void) { + int n; + double x; + + printf("Int n: "); scanf("%d", &n); + printf("Doble n: "); scanf("%d", &x); + + printf("Integer n is %d\n", n); + printf("Double percision floating point decimal x is %f\n", x); + + return 0; +} diff --git a/programs/printf-formats/main-p-4-2 b/programs/printf-formats/main-p-4-2 new file mode 100755 index 0000000..4942d1e Binary files /dev/null and b/programs/printf-formats/main-p-4-2 differ diff --git a/programs/printf-formats/main-p-4-2.c b/programs/printf-formats/main-p-4-2.c new file mode 100644 index 0000000..14666da --- /dev/null +++ b/programs/printf-formats/main-p-4-2.c @@ -0,0 +1,14 @@ +#include + +int main(void) { + int n; + double x; + + printf("Int n: "); scanf("%d", &n); + printf("Doble n: "); scanf("%lf", &x); + + printf("Integer n is %d\n", n); + printf("Double percision floating point decimal x is %f\n", x); + + return 0; +} diff --git a/programs/printf-formats/main.c b/programs/printf-formats/main.c new file mode 100644 index 0000000..31f43ca --- /dev/null +++ b/programs/printf-formats/main.c @@ -0,0 +1,14 @@ +#include + +int main(void) { + int n; + double x; + + printf("Int n: "); scanf("%d", &n); + printf("Doble n: "); scanf("%f", &x); + + printf("Integer n is %d\n", n); + printf("Double percision floating point decimal x is %f\n", x); + + return 0; +}