Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MainClass
- {
- public static void Main(string[] args)
- {
- char input;
- int a1;
- Console.WriteLine("Enter Character");
- input = char.Parse(Console.ReadLine());
- a1 = Int32.Parse(input.ToString());
- if (input > 48 && input < 58)
- {
- Console.WriteLine("output :{0}", input);
- Console.WriteLine(" Input Times 10: " + input * 10);
- Console.WriteLine(" Input Times 15: " + input * 15);
- Console.ReadLine();
- }
- else
- Console.WriteLine("Invalid Input The Input must be between 1-9");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement