scanf • Reads in information from the keyboard • Examples – scanf(“%d”, &number); – scanf(“%d%d”, &value1, &value2); • WARNINGS! – Don’t forget the & (address of) in front of each variable! – Use the correct percent code for the type of the variable you are using!

This
preview
has intentionally blurred sections.
Sign up to view the full version.