Advertisement
mess0011

ue5_3

Nov 15th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 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 ue5_3
  8. {
  9.     class Program
  10.     {
  11.         public static void BMI(float height, float weight, ref double bmi)
  12.         {
  13.  
  14.             bmi = weight / (Math.Pow((height/100),2));
  15.  
  16.         }
  17.  
  18.         static void Main(string[] args)
  19.         {
  20.             double bmi = 0;
  21.             BMI(175, 76, ref bmi);
  22.             Console.WriteLine(bmi);
  23.             Console.ReadLine();
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement