i don't think that's a thing in C, but you can make a function called getNum()
#include <stdio.h>void getNum() { int x;
scanf("%d",&x);
printf("you entered : %d",x);
}
int main() {
getNum();