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
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("calculate the average heart rate:");
- int[] list = new int[5];
- for (int i = 0; i < 5; i++)
- {
- Console.WriteLine("Pls import your nr {0}", i + 1);
- list[i] = Convert.ToInt32(Console.ReadLine());
- }
- int frequency_sum = list[0] + list[1] + list[2] + list[3] + list[4];
- Console.WriteLine("Total sum of the frequncies is {0}", frequency_sum);
- int heart_rate = frequency_sum / 5;
- Console.WriteLine("the average beat of the heart is {0}", heart_rate);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement