Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sing System;
- namespace busfares
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Please enter your age: ");
- int age = Convert.ToInt32(Console.ReadLine());
- if (age > 65) Console.WriteLine("You are elidigble for a free ticket");
- else age
- //if (age < 16) Console.WriteLine("You are elidigible for 30% off your fare");
- //if (age > 110) Console.WriteLine("Please input a valid age between 10 - 110:");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement