Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class SumOfThreeInts
- {
- static void Main()
- {
- Console.WriteLine("Enter first number: ");
- float firstNum = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter second number: ");
- float secondNum = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter third number: ");
- float thirdNum = float.Parse(Console.ReadLine());
- float sum = firstNum + secondNum + thirdNum;
- Console.WriteLine("The sum of the three numbers is: {0}", sum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment