its 10:30PM here. wanted to tune in and see if he played the track i liked by him. unlikely its ID - ID so not shure if he did. but the first ID sounded like it on some remix. or an edit.
also checking e-mail from teacher from my last programming hw. it seems i
only got one wrong.
#include <stdio.h>
#include <math.h>
int main()
{
float x1, y1, result1, result2, result3;
int a = 5.0;
int b = 3.0;
int c = -3.125;
int d = 0;
int e = 1.5;
int f = 8.1;
printf("== Zelda (version 0.000001) ==\n");
printf("
What is the position of our hero, Link?\n");
printf("Enter X and Y coordinates separated by a space\n");
scanf("%f %f", &x1, &y1);
result1 = sqrt ((x1 - a) + (y1 - b)), pow ((x1 - a), 2), pow ((y1 - b), 2);
result2 = sqrt ((x1 - c) + (y1 - d)), pow ((x1 - c), 2), pow ((y1 - d), 2);
result3 = sqrt ((x1 - e) + (y1 - f)), pow ((x1 - e), 2), pow ((y1 - f), 2);
printf("Sword is at (5.0, 3.0). Distance from: %.1f\n", result1);
printf("Heart is at (-3.125, 0). Distance from: %.1f\n", result2);
printf("Triforce is at (1.5,8.1). Distance from: %.1f\n",result3);
}
that was my code. but my math was wrong.was suppose to be like this on the math part.
result = sqrt((5.0 - x) * (5.0 - x) + (3.0 - y) * (3.0 - y));