Ask Question
14 January, 11:06

Declare and initialize the following variables: int monthOfYear, initialized to the value 11 long companyRevenue, initialized to the value 5666777 int firstClassTicketPrice, initialized to the value 6000 long totalPopulation, initialized to the value 1222333.

+2
Answers (1)
  1. 14 January, 13:35
    0
    Following are the declaration and the initialization of variable

    int monthOfYear=11; / / variable declaration of integer

    long companyRevenue=5666777; / / variable declaration of long

    int firstClassTicketPrice=6000; / / variable declaration of int

    long totalPopulation=1222333; / / variable declaration of long

    Explanation:

    Following are the description of Statement

    Declare a variable " monthOfYear " as integer type and initialized 11 to them. Declare a variable " companyRevenue " as long type and initialized 5666777 to them. Declare a variable " firstClassTicketPrice" as integer type and initialized 6000 to them Declare a variable " totalPopulation " as Long type and initialized 1222333 to them.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Declare and initialize the following variables: int monthOfYear, initialized to the value 11 long companyRevenue, initialized to the value ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers