/*
Lauren Dukes
CPSC 1110 Example

Shows an example of using the return value of scanf to make a decision.
*/

#include <stdio.h>
int main(void){
	int x, y, z;
	printf("Please enter three integers separated by a space.");
	int dataCount = scanf("%d %d %d", &x, &y, &z);
	if (dataCount < 3){
		printf("Couldn't read all three numbers. Maybe you used a decimal place?\n");
	}
	else{
		//continue with processing
		int sum = x + y + z;
		printf("The sum of those three numbers is %d\n",sum);
	}
	return 0;
}
