Write a simple python function to generate a series of floating-point numbers by declaring and updating the global values of the variable and use it to produce the desired range of floating-point numbers by taking input from the user.
# The required output is as:
Please input the starting for your series
Please input the d for your series
The series produced by this method is
0.25, 1.0, 1.75, 2.5, 3.25, 4.0, 4.75, 5.5, 6.25, 7.0,
Answers
Answered by
0
Explanation:
Python is a famous programming language, one reason is the simplicity in its syntax and it is extremely well developed language.
The given code in python is;
Code
def constant_addition(num, diff):
{
for ( I =1; I < 11: i++)
{
print(num)
num = num+diff;
}
}
Int main void
{
Int number;
Int difference;
number = input("Please input the starting for your series: ")
difference = input("Please input the d for your series: ")
print ("The series of the given number is:")
constant_addition(number, difference ):
}
Answered by
0
Answer:
Explanation:
Beta I am in KEC as observer will revert you by night currently not possible for me.
Similar questions
Math,
5 months ago
Social Sciences,
5 months ago
Math,
5 months ago
History,
11 months ago
Geography,
1 year ago