Learn To Code
Declare a variable miles_run and initialize it to 3.75.
LANGUAGE: C++ CHALLENGE: Declare a variable miles_run and initialize it to 3.75.
Read MoreWrite a statement that declares two int variables, named num and val and initializes each to 5.
LANGUAGE: C++ CHALLENGE: Write a statement that declares two int variables, named num and val and initializes each to 5.
Read MoreWrite a statement that declares an int variable age and initializes it to 15.
LANGUAGE: C++ CHALLENGE: Write a statement that declares an int variable age and initializes it to 15.
Read MoreDeclare and initialize the following variables monthOfYear, companyRevenue, firstClassTicketPrice, totalPopulation
LANGUAGE: C++ CHALLENGE: Declare and initialize the following variables : A variable monthOfYear, initialized to the value 11 A variable companyRevenue, initialized to the value 5666777 A variable firstClassTicketPrice, initialized to the value 6000 A variable totalPopulation, initialized to the value 1222333
Read MoreDeclare a numerical variable precise and initialize it to the value 1.09388641.
LANGUAGE: C++ CHALLENGE: Declare a numerical variable precise and initialize it to the value 1.09388641.
Read MoreDeclare a variable temperature and initialize it to 98.6.
LANGUAGE: C++ CHALLENGE: Declare a variable temperature and initialize it to 98.6.
Read MoreDeclare a variable x, suitable for storing values like 3.14159 and 6.02E23.
LANGUAGE: C++ CHALLENGE: Declare a variable x, suitable for storing values like 3.14159 and 6.02E23.
Read MoreDeclare a variable populationChange, suitable for holding numbers like -593142 and 8930522.
LANGUAGE: C++ CHALLENGE: Declare a variable populationChange, suitable for holding numbers like -593142 and 8930522.
Read MoreWrite a declaration for two variables, price and cost, that can hold numbers with decimal places.
LANGUAGE: C++ CHALLENGE: Write a declaration for two variables, price and cost, that can hold numbers with decimal places.
Read MoreWrite a declaration for a variable temperature that can hold the current outdoor temperature, measured to the half degree
LANGUAGE: C++ CHALLENGE: Write a declaration for a variable temperature that can hold the current outdoor temperature, measured to the half degree (like 98.6 or 31.5).
Read MoreWrite a declaration for a variable rate_of_pay that can hold values like 11.50 or 12.75.
LANGUAGE: C++ CHALLENGE: Write a declaration for a variable rate_of_pay that can hold values like 11.50 or 12.75.
Read MoreWrite a declaration for a variable channel that can hold TV channel numbers (1 to 900) and a variable hours_recorded that can hold the number of hours of TV recorded (numbers like 1.0 or 3.5).
LANGUAGE: C++ CHALLENGE: Write a declaration for a variable channel that can hold TV channel numbers (1 to 900) and a variable hours_recorded that can hold the number of hours of TV recorded (numbers like 1.0 or 3.5).
Read More