March 2014 update

This commit is contained in:
Ingy döt Net 2014-04-02 16:56:35 +00:00
parent 09687c4926
commit a25938f123
1846 changed files with 21876 additions and 5203 deletions

View file

@ -23,11 +23,11 @@ int main (int argc, const char * argv[])
double userInput = 0.0;
printf("%s", "Please enter a number: ");
scanf("%lf", &userInput);
[input addObject: [NSNumber numberWithDouble: (double) userInput]];
[input addObject: @(userInput)];
}
for(int i = 10; i >= 0; i--) {
double x = [[input objectAtIndex: i] doubleValue];
double x = [input[i] doubleValue];
double y = f(x);
printf("f(%.2f) \t=\t", x);
if(y < 400.0) {