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
thiagobarbosa
1,151 PointsDeclaration : 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?
2 Answers
Stone Preston
42,016 Pointswhat exactly are you trying to do? you would need to assign size1, size2, and size3 values before doing any conditional checks.
thiagobarbosa
1,151 PointsI`m trying to make an app that the user will insert 3 float numbers and the app will give back the bigger number.
thiagobarbosa
1,151 Pointsthiagobarbosa
1,151 PointsI`m trying to make an app that the user will insert 3 float numbers and the app will give back the bigger number.