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
aditation
Sum Example
Even and Odd numbers by Erick Benites
Objective C Class and Object example
Interface implementation
Uso de else if
Simple Arithmetic Operations in Objective C
Ex Srting Methods
NSMutableset(add/remove,Etraction,Intersect)
simple inheritance in objective c