Added programs for 2nd half of assignment
This commit is contained in:
14
programs/printf-formats/main-p-1-2.c
Normal file
14
programs/printf-formats/main-p-1-2.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user