Simple input function in c is scanf();
It take user input and stores in a buffer.
It take user input and stores in a buffer.
#include<stdio.h>
#include<stdlib.h>
int main()
{
int a;
printf("Enter your favorite Number : \n");
scanf("%d",&a);
printf("Your lucky number is : %d",a);
system("pause");
return 0;
}
No comments:
Post a Comment