Created
June 9, 2020 09:27
-
-
Save gs-niteesh/b11afbe18eed8a173ebdbebebaf52917 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Program name Data type | |
#include <stdio.h> | |
int main() | |
{ | |
int a; | |
double d; | |
char c; | |
float f; | |
long b; | |
scanf("%d %ld %c %f %lf", &a, &b, &c, &f, &d); | |
printf("%d\n", a); | |
printf("%ld\n", a); | |
printf("%c\n", a); | |
printf("%.3f\n", a); | |
printf("%.9lf\n", a); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment