Pseudo code here
int i;
for(i=2,i<=10;i++)
{
print 1/i;
}
i = 2;
while (i <= 10)
{
print 1/i;
i++;
}
3rd: A force applied to a body to propel it in a desired direction.
Answer:
the answer is adding and deleting rows
Answer:
- low = 10
- high = 50
- count = 0
-
- for i in range(low, high + 1):
- if(i % 3 == 0 and i % 5 == 0):
- count += 1
- print(count)
Explanation:
The solution code is written in Python.
We can create low and high variables to store the lower bound and upper bound in the range (Line 1-2)
Next create a counter variable, count (Line 3).
Use a for loop to traverse through the number between lower bound and upper bound and check if the current number-i is divisible by 3 and by 5, increment the count by one.
After the loop, print the count and we can get the number of ideal integers within the range (Line 8).