The correct answer is 1.6
Answer:
It depends on the situation
import "from random import randrange"
for printing random numbers between integers "random.randrange(num1, num2"
Syntax:
"random.randrange(start, stop, step)"
Parameter Values:
start - optional - an integer defining which position to start - default = 0
stop - required - an integer defining which position to end.
step - optional - an integer define the incrementation - default = 1
Explanation:
The syntax is a bit weird but I hope I was a help
Answer:
i dont know sorry man no problem listed
Explanation:
Answer:
The rising of shied hero, last hope, and dragon pilot.
Answer:
int count =0;
for(int i=0;i<10;i++)
{
if(myArray[i]>=0)
{
count++;
}
}
cout<<"Number of positive integers is "<<count<<endl;
Explanation:
The above written loop is for counting positive integers in the myArray[].
For counting we have taken a count integer initialized with 0.On iterating over the array if the element is greater than or equal to 0 we consider it as positive and increasing the count.At the end printing the count.