C# Conditional Constructs Exercise

In this chapter you will learn

How to solve programming problems using conditional constructs in C#. There are some programming exercises are given below. Do the exercises and improve your programming skills in conditional constructs.

Qu1:Write a program of tax calculation. Accept money as input from the user and calculate the tax using following pattern.
MoneyPercentageTotal Tax
Less than 10,0005%?
10,000 to 100,0008%?
More than 100,0008.5%?
Qu2:Write a program for library management system in which display the user option and based on option shows them available book.


c: for computer books
m: for mathematical books
h: for history books
e: for English books

If user input wrong value then shows them message try again and serve the input prompt again using goto label statement.


In this chapter, you learned how to solve programming problems using conditional constructs in C#. In next session, you will know about various C# Statements.

3 thoughts on “C# Conditional Constructs Exercise”

  1. Hi this is dileep . i want library management source code..iam not getting it .
    could you please forward it to my mail

  2. hi this is bhaskar. i want also library management source code. i am not getting it.
    Please give m hint.other wise program will be sent my mail or you will put code in the site.please fast forward it

Leave a Reply

Your email address will not be published. Required fields are marked *