Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Declaration : my first code

How can I do the following in iOS:

float size1, size2, size3; if (size1 >= size2 && size1 >= size3) { biggerSize = size1; }

Do I need to declare a @property for it?

I`m trying to make an app that the user will insert 3 float numbers and the app will give back the bigger number.

2 Answers

what exactly are you trying to do? you would need to assign size1, size2, and size3 values before doing any conditional checks.

I`m trying to make an app that the user will insert 3 float numbers and the app will give back the bigger number.