/******************************************************/ /* Introduction to Programming */ /* By Dr. ANTF */ /* www.antf.net */ /* Copyright 2015 */ /* */ /* C# 308 - Problem 7: Square & Cube (b) */ /******************************************************/ 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}\nCube of {0} is: {2}\n", i, i * i, i * i * i); Console.ReadKey(); } } }