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;
- using System.Threading.Tasks;
- namespace ConsoleApp7
- {
- class Program
- {
- static void Main(string[] args)
- {
- string num1 = "15";
- string num2 = "20";
- int sum = int.Parse(num1) + int.Parse(num2);
- double sumD = double.Parse(num1) + double.Parse(num2);
- Console.WriteLine(sum);
- Console.WriteLine(sumD);
- Console.Read();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement