Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2004, 08:29 AM
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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();
        }
    }
}



 
Old June 30th, 2004, 08:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Sorry what is it about?! What question u have answered?!?!

Always:),
Hovik Melkomian.
 
Old June 30th, 2004, 10:55 AM
Authorized User
 
Join Date: Jun 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is probably the question in Chapter 3 number 5 in the book Beginning Visual C#(I have it) Where the question is:
Write a console application that contains four int values from the user and displays the product.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Please answer canasdaq XML 3 April 19th, 2006 09:04 AM
i want answer titto_oo7 C# 7 February 9th, 2006 03:59 PM
answer IvAnR C++ Programming 1 July 22nd, 2005 08:01 AM
About the answer!!! soso ASP.NET 1.0 and 1.1 Basics 0 July 9th, 2003 11:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.