Hello and thanks for all your replies.
I understand that it does not look user-friendly, and this program is for me, not for other users. But I'll post it simple so you will know what it was all about.
a minute divided by the bpm
(the result divided by 2) * 1000
So I guess it is
((60/BPM)/2)*1000
So I made:
y = 60/bpm
then
e=y/2
then
z=e*1000
Can I do it in a single equation ? It could be z = ((60/BPM)/2)*1000
Can try it now, I'm at work on (lunch time)
Code:
#include <stdio.h>
int main()
{
float e,BPM,y,z;
printf("Enter the tempo in Beats Per Minute :");
scanf("%f",&BPM);
y = (60/BPM); // The result of a minute (60 seconds) divided by the number of beats per minute
e = (y/2);
z = e*1000;
printf("Set the DELAY to %f miliseconds\n",z);
getch();
return 0;
}
Also, there are things I haven't understood yet that you are talking about (arguments ?)