Write a console application and implement the ternary operator to decide whether the
age a user entered after being prompted is allowed to vote or not(given that only citizens
between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical
input.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Interview Questions

How can we main a Class as base class,i.e not inherited further?{please Dont tell using Sealed class,any other way}

6 Answers   ACB Group, IBM, Tech Mahindra,


What are circular references? How garbage collection deals with circular references.

0 Answers  


What is serializable in c#?

0 Answers  


What is for loop in c#?

0 Answers  


What is private void in c#?

0 Answers  


How do I declare inout arguments in c#?

0 Answers  


What is stringbuilder c#?

0 Answers  


What is the difference between int.Parse() and Convert.toInt32().

2 Answers  


Why is aws serverless?

0 Answers  


If dll and exe files are same it means you can deploy both the files in gac?

0 Answers  


Can we make a class private in c#?

0 Answers  


What do you mean by jagged array?

0 Answers  


Categories