Advertisement
PawsonCz

Untitled

Jan 2nd, 2021
962
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using System;
  2.  
  3. public class Program
  4. {
  5.         public static void Main()
  6.     {
  7.         Console.WriteLine("Reqtangle squer");
  8.         Console.WriteLine("Give my two values\n");
  9.         String a, b;
  10.         Console.Write("width = ");
  11.         a = Console.ReadLine();
  12.         float width = float.Parse(a);
  13.         Console.Write("length = ");
  14.         b = Console.ReadLine();
  15.         float length = float.Parse(b);
  16.         float Squer = 2 * (length + width);
  17.         Console.WriteLine($"The result is {Squer}");
  18.  
  19.     }
  20.  
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement