C (clang), 6363 42 bytes
main(i){scanf("%i",&i);if(i==0)puts("1");else{printf;printf("%i",i?:1);}}
Much readable than C answers that already exists here. An if-else statement whether to output 1 or the other.
Thanks to ceilingcat for golfing 21 bytes.