modified codes
This commit is contained in:
14
programs/printf-formats/main-p1-lf.c
Normal file
14
programs/printf-formats/main-p1-lf.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
int n;
|
||||
double x;
|
||||
|
||||
printf("Int n: "); scanf("%d", &n);
|
||||
printf("Double x: "); scanf("%lf", &x);
|
||||
|
||||
printf("Integer n is %d\n", n);
|
||||
printf("Double percision floating point decimal x is %f\n", x);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user