How to Take Input in C

  1. #include<stdio.h>  
  2. #include<conio.h>  
  3.   
  4. int main()  
  5. {  
  6.   
  7.    int number;  
  8.    printf("Enter number");  
  9.   
  10.    // this line will take input a number from user  
  11.    scanf("%d",&number);  
  12.   
  13.    printf("You entered %d",number);  
  14.   
  15.    getch();  
  16.   
  17.    return 0;  
  18. }