Answer to Question #325437 in C# for akashcc

Question #325437

create a console application in area of the square


1
Expert's answer
2022-04-07T13:13:37-0400
using System;

namespace area_square
{
    class Program
    {
        public static void Main(string[] args)
        {
            int side, square;
            Console.Write("Enter length of side: ");
            side = Convert.ToInt32(Console.ReadLine());
            square = side * side;
            Console.WriteLine("Area of the square: {0}\n", square);
            
            Console.Write("Press any key to continue . . . ");
            Console.ReadKey(true);
        }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS