visual studio 2012 - windows form that Calculate area and perimeter using C# -
i trying create program calculate area , perimeter of square using c# using forum app having hard time starting program have form made need code part of it. can help?
this how calculate area of square
using system; namespace myapp { class program { static void main(string[] args) { double dlength; double darea; console.writeline("enter length of side of square :"); dlength = convert.todouble(console.readline()); darea = dlength * dlength; console.writeline("the area of square is: " + darea); console.readline(); } } }
Comments
Post a Comment