Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication12
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a, b, c;
- int n;
- do
- {
- try
- {
- a = int.Parse(Console.ReadLine());
- b = int.Parse(Console.ReadLine());
- c = a / b;
- Console.WriteLine(c);
- break;
- }
- catch (FormatException)
- { Console.WriteLine("You 'derped out!"); }
- catch (Exception ex)
- { Console.WriteLine("you did something WHAT, HOW DID THIS GET HERE I AM NOT GOOD WITH COMPUTERS."); }
- }
- while(true);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement