Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
Convert String to NSData Json Object
string divison
HAL is IBM
nsset
add
shape example
represent value
emp class
Author1
NSArray Method Exercise