Maligayang pagdating sa Imhr.ca, kung saan ang iyong mga tanong ay masasagot ng mga eksperto at may karanasang miyembro. Kumonekta sa isang komunidad ng mga eksperto na handang magbigay ng eksaktong solusyon sa iyong mga tanong nang mabilis at eksakto. Kumonekta sa isang komunidad ng mga propesyonal na handang tumulong sa iyo na makahanap ng eksaktong solusyon sa iyong mga tanong nang mabilis at mahusay.

Assign the values 1.35 to a variable named a?


Sagot :

Assign the values 1.35 to a variable named a? Answer: float a = 1.35

Variable is a container of a value. For example, the value that you need to assign to a variable is 1.35, since variable is user defined, meaning user can choose the name of their variable, you can simple use "a" as a variable name. Then use an assignment operator called = or equals sign to put the value 1.35 to variable a. The assignment operator will be the giver of the value to the variable a. When the program used variable a, it will compute and use the value 1.35.

1.35 is a number with decimal value, therefore, variable a must be declared as float or double variable which supports value with decimal places. For variable with exact value or those that doesn't contain any decimal value, it must be declared as integer or numbers that are whole. These are called data types. Other data types are string, which supports variable which is composed of words and several letters and characters.

To know more about data types, read on the following:

  • 10 examples of Data Types? : https://brainly.ph/question/2091865
  • Define the different types of data : https://brainly.ph/question/672063

#LetsStudy

Pinahahalagahan namin ang iyong pagbisita. Sana'y naging kapaki-pakinabang ang mga sagot na iyong natagpuan. Huwag mag-atubiling bumalik para sa karagdagang impormasyon. Salamat sa pagpili sa aming plataporma. Kami ay nakatuon sa pagbibigay ng pinakamahusay na mga sagot para sa lahat ng iyong mga katanungan. Bisitahin muli kami. Laging bisitahin ang Imhr.ca para sa mga bago at kapani-paniwalang sagot mula sa aming mga eksperto.