use scan_f for c input code example Example 1: scanf c scanf("%d", &b); Example 2: how to scan in c scanf("%d",&int);