how to get integer input in c gets code example Example: get int from user c #include <stdio.h> int n; scanf("%d",&n);