-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
21 lines (17 loc) · 729 Bytes
/
Copy pathmain.c
File metadata and controls
21 lines (17 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// prototype of "mul" functions, implemented in "mul32.asm"
extern float mul1(float , float);
extern float mul2(float , float);
//function prototype
float convert(float crypto_usd, float rate);
int main(){
printf("%f \n\n",convert(30364.10f, 387.075f));
printf("El segundo parametro enviado (primero pusheado y mas alto en la pila es: %f \n", 387.075f);
printf("El primer parametro enviado (segundo pusheado y mas bajo en la pila es: %f \n", 30364.10f);
return 0;
}
float convert(float crypto_usd, float rate){ //mul2 puede remplazarse por mul1
float convertion = mul1(crypto_usd, rate); // calcula el precio de btc en ars
return convertion;}