March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue