using System; namespace Example1 { /// /// Summary description for Class1. /// class Class1 { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { // // Program to read 3 integers, 1 per line, and then compute twice the // sum + 7 // Console.WriteLine("Enter three integers 1 per line"); int first = int.Parse(Console.ReadLine()); int second = int.Parse(Console.ReadLine()); int third = int.Parse(Console.ReadLine()); Console.WriteLine("Integer 1= " + first); Console.WriteLine("Integer 2= " + second); Console.WriteLine("Integer 3= " + third); Console.WriteLine("Twice the sum of your integers plus 7 is " + (2 * (first + second + third) + 7)); } } }