#include <stdio.h> int main() { int a; printf("Enter an integer\n"); scanf("%d", &a); printf("Integer that you have entered is %d\n", a); return 0; }
C program to store integer in a string
#include <stdio.h> int main () { char n[1000]; printf("Input an integer\n"); scanf("%s", n); printf("%s", n); return 0; }
0 comments:
Post a Comment