Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Prim Phan
    PLUS
    Prim Phan
    Courses Plus Student 8,111 Points

    Challenge Task 1 of 2. Create an int variable called 'size' with a value of 13.

    Posted February 18, 2018 12:40am by Prim Phan
    Prim Phan
    Courses Plus Student 8,111 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    2 Answers

  • Varun Jain
    Varun Jain
    670 Points

    float foodPrice = 3.50 ; how is this incorrect in initializing a float with name foodPrice and value 3.50

    Posted February 9, 2017 1:02pm by Varun Jain
    Varun Jain
    670 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    2 Answers

  • Razvan Sandulescu
    Razvan Sandulescu
    341 Points

    Why is not working?

    Posted December 14, 2016 4:36pm by Razvan Sandulescu
    Razvan Sandulescu
    341 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    3 Answers

  • mark hengstebeck
    mark hengstebeck
    1,119 Points

    how do I contact Gabe, the objective C instructor, directly? Mark

    Posted November 11, 2016 6:53pm by mark hengstebeck
    mark hengstebeck
    1,119 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    2 Answers

  • Madina Begumova
    Madina Begumova
    2,930 Points

    float foodPrice = 3.50; I can't pass this question. I think it's a bug

    Posted October 12, 2016 1:45am by Madina Begumova
    Madina Begumova
    2,930 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    1 Answer

  • Emilio Sánchez
    Emilio Sánchez
    2,450 Points

    i put int size = 13; and didn't work

    Posted October 4, 2016 10:52pm by Emilio Sánchez
    Emilio Sánchez
    2,450 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    0 Answers

  • Jourdan Dixon
    Jourdan Dixon
    4,752 Points

    Create an int variable called 'size' with a value of 13

    Posted October 4, 2016 8:27am by Jourdan Dixon
    Jourdan Dixon
    4,752 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    0 Answers

  • Rohan Bedi
    Rohan Bedi
    1,286 Points

    create a float vairable called foodPrice and give it a value of 3.50

    Posted June 6, 2016 4:12pm by Rohan Bedi
    Rohan Bedi
    1,286 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    1 Answer

  • Usen Ekpek
    Usen Ekpek
    1,634 Points

    create an int variable called "size" with a value of 13.

    Posted May 19, 2016 7:18pm by Usen Ekpek
    Usen Ekpek
    1,634 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    3 Answers

  • David Adams
    PLUS
    David Adams
    Courses Plus Student 555 Points

    Line of code "float foodPrice = 3.5;". Cannot understand why code check is whining about an int.

    Posted April 23, 2016 12:39pm by David Adams
    David Adams
    Courses Plus Student 555 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    2 Answers

  • Alexander Brightman
    Alexander Brightman
    518 Points

    Is there something wrong with this quetion's answer checker?

    Posted March 17, 2016 6:27pm by Alexander Brightman
    Alexander Brightman
    518 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    1 Answer

  • Marco Garduño
    Marco Garduño
    1,549 Points

    float foodPrice; foodPrice=3.50; what is wrong???

    Posted March 8, 2016 2:44am by Marco Garduño
    Marco Garduño
    1,549 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    1 Answer

  • Bhuvaneswari Babu
    Bhuvaneswari Babu
    255 Points

    Create a float variable called 'foodPrice' and give it a value of 3.50 .

    Posted January 30, 2016 9:27am by Bhuvaneswari Babu
    Bhuvaneswari Babu
    255 Points
    • iOS
    • Objective-C Basics
    • Basic Data Types and Variables
    • Numerical Variables

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord