Amazon.com Widgets Exercise 5 - Let's keep it simple.
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2013, 07:46:36 AM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Old Stuff
| |-+  Answers to Exercises
| | |-+  Chapter 4
| | | |-+  Exercise 5 - Let's keep it simple.
Pages: [1]   Go Down
Print
Author Topic: Exercise 5 - Let's keep it simple.  (Read 516 times)
johnyorke
Newbie
*
Posts: 18


Email




« on: December 02, 2011, 02:11:41 PM »

#import <Foundation/Foundation.h>

int main(int argc, char *argv[])
{
    float x;
   
    x = (3.31e-8 + 2.01e-7) / (7.16e-6 + 2.01e-8);
   
    NSLog(@"x = %.2e", x);
   
    return 0;
   
}

Output: 2011-12-02 21:08:47.149 excercises[270:707] x = 3.260400e-02

Hope it's right...
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.