Computer Science, asked by mansimishra8f9157, 4 months ago

write a program to input any number and print the total of its next five number​

Answers

Answered by jai696
3

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

def next_5_total(n):

counter = n

sum_of_nums = 0

for x in range(5):

counter += 1

sum_of_nums += counter

return sum_of_nums

n = int(input("enter a number: "))

print(f"sum: {next_5_total(n)}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions