Short Review
Talking like Yoda I am!
Examples:
if ( number < 10 ) {
printf("That number is too small. I don't like it\!");
}
if ( number < 10 ) {
printf("That number is too small. I don't like it\!");
} else {
printf("%d is a GOOD number.\n");
}
while (inches < 100 || inches > 1000) {
printf("Integer must be greater than 100 and less than 1000.\n");
printf("Please re-enter an inetger between 100 and 1000: ");
scanf("%d", &inches);
}
do {
printf("Please enter an inetger between 100 and 1000: ");
scanf("%d", &inches);
} while (inches < 100 || inches > 1000);
for Loops and their
sample run
Sentinals & Priming Reads
DeMorgan's Law
Main Page