Sorry for the simple question, but i have an excercise where I have to write an Objective-C console app that squares a float and that displays resulting float in console, but i don’t understand how to write it, can someong please show me how to write that code so I could understand?
I’m beginer to Objective C so thanks for the patience! 🙂
I don’t see the purpose of a console application on the iPhone, but here you go:
Create a new project and edit your main.m from something like this:
Change it to something like this: