Answer the question
In order to leave comments, you need to log in
Error in simple code, where?
#import <Foundation/Foundation.h>
double proccessOne();
int main()
{
double metrQube;
int gektar=2;
metrQube=proccessOne(gektar);
NSLog (@"Метров вышло = %.6f",metrQube);
}
double proccessOne(gektar)
{
double formulaResult;
formulaResult=gektar/10000;
return formulaResult;
}
Answer the question
In order to leave comments, you need to log in
I don't know for sure, but this place
double proccessOne(gektar) is
strange. What is the type of gektar? It turns out, int? Divide 2 by 10000 to get 0 - integer division. Divide by 10000.0, for example. Or explicitly specify the type of the argument as double.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question