Advertisement
AlexRaynor

2.5. Methods

Sep 22nd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp18
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.  
  14.  
  15.         }
  16.  
  17.         static bool Maximum (int a, int b)
  18.         {
  19.             if (a > b )
  20.             {
  21.                 return true;
  22.             }
  23.             else
  24.             {
  25.                 return false;
  26.             }
  27.         }
  28.  
  29.         static void DisplayText(string Text)
  30.         {
  31.             Console.WriteLine(Text);
  32.         }
  33.  
  34.         static double GetSquareofCircle(int radius)
  35.         {
  36.             double square;
  37.  
  38.             square = Math.Pow(radius, 2) * Math.PI;
  39.                        
  40.             return square;
  41.         }
  42.  
  43.  
  44.  
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement