#include <stdio.h> int main() { //taking a variable int number; // printf() dislpays the formatted output printf("Enter an integer: "); // scanf() reads the formatted input and stores them scanf("%d", &number); // printf() displays the formatted output printf("You entered: %d", number); }
OUTPUT
SHARE WITH YOUR FRIENDS
No comments:
Post a Comment