//This example shows how printf and scanf work.

/*
Algorithm
1. Declare three integer variables: a, b, and c.
2. Use printf to tell the user to enter in three integers.
3. Use scanf to read in the three integers in order--the first goes to a, the second goes to b, and the third goes to c.
4. Print out b, then a, then c.
*/

//includes the standard input/output library, which hold the definitions for printf and scanf
#include <stdio.h>

//main is where the program starts
//void means that main takes in nothing
//int means that main will return an integer when it is done
int main(void){

	//declared three integer variables
	int a, b, c;

	//put in instructions
	printf("Please enter three integers, seperated by a space, and press enter.");

	//read in three integer variables seperated by a space
	scanf("%d %d %d",&a, &b, &c);

	/*print out three integer variables separated by a space*/
	printf("%i %i %i",b,a,c);

	//return 0 means that our program ran successfully.
	return 0;
}
