Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ue5_3
- {
- class Program
- {
- public static void BMI(float height, float weight, ref double bmi)
- {
- bmi = weight / (Math.Pow((height/100),2));
- }
- static void Main(string[] args)
- {
- double bmi = 0;
- BMI(175, 76, ref bmi);
- Console.WriteLine(bmi);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement