C Programs
Write a C Program to take a number from user and print it.
Write a C Program to take a number from user and print it.
#include <stdio.h>
int main() {
int number;
printf("Enter an integer: ");
// reads and stores input
scanf("%d", &number);
// displays output
printf("You entered: %d", number);
return 0;
}
Post a Comment
0 Comments