Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Learning to write a C# program to compute the perimeter of a rectangle?

$
0
0

How would one write a C# program to compute the perimeter of a rectangle of width w and heighth. 

So far this is all I have

using

System;


using

System.Collections.Generic;


using

System.Linq;


using

System.Text;



namespace

ConsoleApplication1

{

   

classProgram


    {

       

staticvoidMain(string[] args)

        {

           

intheight = 1;

           

intwidth = 2;


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>