I did the nesting and i got the program running like I wanted to. I really appreciate your help A LOT! I got two more programs to go and I will be done. Below is what I did, so hopefully it might help someone in the same boat as me in the future.
Code:
#include <stdio.h>
int main()
{
int x, y, z;
int sum;
int average;
int product;
printf( "Input 3 different integers: ");
scanf( "%d%d%d", &x, &y, &z );
sum = x + y + z;
average = (x + y + z)/3;
product = x * y * z;
printf( "Sum is %d\n", sum );
printf( "Average is %d\n", average);
printf( "Product is %d\n", product );
if( x>y) {
if(x>z) {
printf("Largest: %d\n", x);
}
}
if( y>x) {
if(y>z) {
printf("Largest: %d\n", y);
}
}
if( z>y) {
if(z>x) {
printf("Largest: %d\n", z);
}
}
if( x<y) {
if(x<z) {
printf("Smallest: %d\n", x);
}
}
if( y<x) {
if(y<z) {
printf("Smallest: %d\n", y);
}
}
if( z<y) {
if(z<x) {
printf("Smallest: %d\n", z);
}
}
system ("pause");
return 0;
}