I think this would help you.

#include <stdio.h>
#include <ctype.h>
int main()
{
int num1;

printf("Insert a number from 0 to 9: ");
scanf("%d",&num1);