c programming scanf after printf but output show first scanf code example Example: c printf scanf int a; scanf("%d", &a); printf("%d", a);