0
I’m having trouble passing arguments through parameters. The error occurs in the row 23 column 5 and it’s like this:
Too few Arguments to Function 'imc'
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include <unistd.h>
float imc(float tam, float pes);
int main()
{
    float altura;
    float peso;
    float resultado;
    printf("digite a sua altura ");
    scanf("%f",&altura);
    printf("\n\ndigite seu peso ");
    scanf("%f", &peso);
    imc(altura,peso);
    system("clear");
    printf("%f", imc(resultado));
    return 0;
}
float imc(float tam, float pes)
{
    return tam*pow(pes,2);
}
vlw by editing
– Leonardo V. De Gasperin