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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.