The answer of Chapter 3,(5)
This is my answer. I have had it built.
The Codes :
using System;
namespace ConsoleApplication1
{
/// <summary>
/// Class1 µÃêêõÃ÷¡£
/// </summary>
class Class1
{
/// <summary>
/// æÃóÃÃòµÃÃ÷Ãë¿Ãµã¡£
/// </summary>
[STAThread]
static void Main(string[] args)
{
int a,b,c,d;
Console.WriteLine("Pleas input 4 integer numbers ! ");
a=Convert.ToInt32(Console.ReadLine());
b=Convert.ToInt32(Console.ReadLine());
c=Convert.ToInt32(Console.ReadLine());
d=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("The product of number {0} and {1} and {2} "+
"and {3} is {4} ",a,b,c,d,a*b*c*d);
Console.WriteLine("Press any key to continue...");
Console.Read();
}
}
}
|