Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(){
- double a, b;
- Console.WriteLine("Podaj długości bokow prostokąta");
- a = double.Parse(Console.ReadLine());
- b = double.Parse(Console.ReadLine());
- Console.WriteLine("Długości bokow to: " + a + " oraz: " + b);
- Console.WriteLine("Pole wynosi: " + rectangleArea(a, b));
- }
- public static double rectangleArea(double a, double b){
- return a*b;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement