How to add a variable without defining a value? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add a variable without defining a value?

Angle_in_radians = Angle_in_degrees * pi / 180 The essence is to make a translation from degrees to radians. But the program will make its own difference. What should I do?

4th Nov 2017, 2:52 PM
Владислав Леванович
Владислав Леванович - avatar
6 Answers
0
which language Please put the language of your question in the tags.
4th Nov 2017, 2:59 PM
sneeze
sneeze - avatar
0
What do you mean by defining a value ? What do you mean by Program will make its own difference ?
4th Nov 2017, 3:20 PM
sneeze
sneeze - avatar
0
If you do not specify a value for the variable, the compiler will select a random number
4th Nov 2017, 3:28 PM
Владислав Леванович
Владислав Леванович - avatar
0
The value of the angle in degrees (0,2п) is given. Determinite the value of this same angle, taking into account that 180 degrees = п radians
4th Nov 2017, 3:36 PM
Владислав Леванович
Владислав Леванович - avatar
0
Did write some code. https://code.sololearn.com/cBexiA3ka5V0 Not sure if I understand your question double degrees; //define a variable degrees = 10; //assign a value radians = (degrees * PI) //use a variable so you can't use a variable if you do not define it.
4th Nov 2017, 5:28 PM
sneeze
sneeze - avatar
0
All okay, because I decided problem
4th Nov 2017, 6:21 PM
Владислав Леванович
Владислав Леванович - avatar