Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
geomatric operations in objective c
//gcc 4.8.4 #import <Foundation/Foundation.h> int main(void) { float side=5; float lenth=5; float width=5; float base=5; float height=5; float radius=5; float edge=5; NSLog(@"area of square => %f", side*side); NSLog(@"area of rectangle => %f", lenth*width); NSLog(@"area of triangle=> %f", 0.5*base*height); NSLog(@"area of circle => %f", 3.14*radius*radius); NSLog(@"volume of cube=> %f", edge*edge*edge); NSLog(@"volume of cylinder=> %f", 3.14*radius*radius*height); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Interface implementation
Objective C Class and Object example
02 Mostrar valor de variable entera
NSMutable Chirag
emp class
Cylinder And Circle
inheritenace-test
01 Hola mundo
objective-c size of datatypes
Author1
stackse - search stackoverflow differently
Please log in to post a comment.