Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Test
- {
- public static void Main()
- {
- double a,b,wynik;
- Console.WriteLine("Podaj liczbę a:");
- string temp = Console.ReadLine();
- a = float.Parse(temp);
- Console.WriteLine("Podaj liczbę b:");
- temp = Console.ReadLine();
- b = float.Parse(temp);
- try
- {
- wynik = a/b;
- }
- catch
- {
- //?
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment