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 July 15th, 2004, 03:29 PM
Authorized User
 
Join Date: Jul 2004
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning Visual C# Exercises - Chapter 03

1. super.smashing.great

2. b - variable names cannot begin with a numeral

3. No.
        There is no upper limit on the amount of characters in a string type

4. var1 * var2 (a)
        var3 % var4 (b)
        b / var5 (c)
        a + c
         or (var1 * var2) + ((var3 % var4) / var5)

5. int answer1, answer2, answer3, answer4;
        Console.WriteLine("Enter first of four numbers:");
        answer1 = Convert.ToInt32(Console.ReadLine());
        Console.WriteLine("Enter second of four numbers:");
        answer2 = Convert.ToInt32(Console.ReadLine());
        Console.WriteLine("Enter third of four numbers:");
        answer3 = Convert.ToInt32(Console.ReadLine());
        Console.WriteLine("Enter fourth of four numbers:");
        answer4 = Convert.ToInt32(Console.ReadLine());
        Console.WriteLine("The product of these four numbers is {0}!",
            Convert.ToString(answer1*answer2*answer3*answer4)) ;
 
Old July 19th, 2004, 09:16 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Is there a question associated with this post?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning Visual C# Exercises - Chapter 18 seblake C# 1 October 9th, 2004 11:33 PM
Beginning Visual C# Exercises - Chapter 10 seblake C# 1 July 29th, 2004 05:10 PM
Beginning Visual C# Exercises - Chapter 09 seblake C# 0 July 27th, 2004 03:23 PM
Beginning Visual C# Exercises - Chapter 05 seblake C# 1 July 26th, 2004 07:40 AM





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