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