Coursera, C programming for everyone. cc4e.com/book/chap01.md
scanf This reads the input and converts accordingly to the variables.
#include <stdio.h> int main() { int usf, euf; printf("Enter US Floor\n"); scanf("%d\n", &usf); euf = usf - 1; printf("EU Floor %d\n", euf); } This can also be used to read in new lines.