using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) {int numone; int numtwo; int numthree; int sum; int average; int product; int smallest; int largest; //get nums Console.WriteLine("Enter a number"); numone = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter a second number"); numtwo = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter a third number"); numthree = Convert.ToInt32(Console.ReadLine()); //sum sum = numone + numtwo + numthree; Console.WriteLine("The sum is " + sum); //average average = sum/3; Console.WriteLine("The average is " + average); //product product = numone + numtwo + numthree; Console.WriteLine("The product is " + product); //smallest { if ((numone <= numtwo) && (numone <= numthree)) {smallest = numone;} else if ((numtwo <= numone) && (numtwo <= numthree)) { smallest = numtwo; } else { smallest = numthree; } } Console.WriteLine("The smallest is " + smallest); //largest { if ((numone >= numtwo) && (numone >= numthree)) { largest = numone; } else if ((numtwo >= numone) && (numtwo >= numthree)) { largest = numtwo; } else { largest = numthree; } } Console.WriteLine("The largets is " + largest); // Console.WriteLine(numone + numtwo); } } }