Try something like this
#include<stdio.h>
void main()
{
int a;
scanf("%d",&a);
}
You need to declare an integer and then write the scanf code corresponding to it