Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- Console.WriteLine("Reqtangle squer");
- Console.WriteLine("Give my two values\n");
- String a, b;
- Console.Write("width = ");
- a = Console.ReadLine();
- float width = float.Parse(a);
- Console.Write("length = ");
- b = Console.ReadLine();
- float length = float.Parse(b);
- float Squer = 2 * (length + width);
- Console.WriteLine($"The result is {Squer}");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement