Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- int BPM = int.Parse(Console.ReadLine());
- double beats = double.Parse(Console.ReadLine());
- var bars = beats / 4;
- var min = beats / BPM;
- var sec = (min * 60) % 60;
- Console.WriteLine(Math.Round(bars, 1) + " bars - " + Math.Floor(min) + "m " + Math.Floor(sec) + "s");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment