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