C LANGUAGE - 10: GETTING USER INPUT

 HERE,  WE WILL SEE ABOUT GETTING USER INPUT:

#include<stdio.h>
#include<stdlib.h>

int main()
{
    int age;
    printf("Enter your age: ");
    scanf("%d", &age);
    printf("You are %d years old", age);

    return 0;
}

Comments