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;
- using System.Threading.Tasks;
- namespace ConsoleApplication2
- {
- class Program
- {
- static void Main(string[] args)
- {
- while(true)
- {
- try
- {
- Console.WriteLine("introduza um numero");
- int num1 = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("introduza um numero");
- int num2 = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine(num1 + num2);
- break;
- }
- catch
- {
- Console.WriteLine("S T O P deu erro ");
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment