Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace filipCwiczenia
- {
- class Program
- {
- static void Main(string[] args)
- {
- int dlugosc;
- Console.Write("podaj dlugosc boku kwadratu: ");
- dlugosc = int.Parse(Console.ReadLine());
- Console.Clear();
- Console.WriteLine("oto wyniki twoich zadan:");
- Console.WriteLine();
- int pole = dlugosc * dlugosc;
- int obwod = dlugosc * 4;
- Console.WriteLine($"pole kwadtratu o boku {dlugosc} wynosi {pole}");
- Console.WriteLine($"obwod kwadratu o boku {dlugosc} wynosi {obwod}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement