/******************************************************/ /* Introduction to Programming */ /* By Dr. ANTF */ /* www.antf.net */ /* Copyright 2015 */ /* */ /* C# 308 - Problem 7: Square & Cube (a) */ /******************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DOS { class Program { static void Main(string[] args) { for (int i = 1; i <= 10; i++) { Console.WriteLine("Square of {0} is: {1}", i, i * i); Console.WriteLine("Cube of {0} is: {1}\n", i, i * i * i); } Console.ReadKey(); } } }