Advertisement
Shtiler

Untitled

Oct 27th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using System;
  2.  
  3. class MainClass
  4. {
  5. public static void Main(string[] args)
  6. {
  7. char input;
  8. int a1;
  9. Console.WriteLine("Enter Character");
  10. input = char.Parse(Console.ReadLine());
  11. a1 = Int32.Parse(input.ToString());
  12. if (input > 48 && input < 58)
  13. {
  14. Console.WriteLine("output :{0}", input);
  15. Console.WriteLine(" Input Times 10: " + input * 10);
  16. Console.WriteLine(" Input Times 15: " + input * 15);
  17. Console.ReadLine();
  18. }
  19. else
  20. Console.WriteLine("Invalid Input The Input must be between 1-9");
  21.  
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement