World Languages, asked by omarmslmene, 10 months ago

Write a C++ program to input two positive integers A and B (A < B). The program should output the following: (10 points)

1. Sum of all odd numbers between A and 30. (10 points)

2. Count of even divisors of A and B. (15 points)

3. Value of f(A): 1/A + 2/A2 + 3/A3 + …… + B/AB (15 points)

Answers

Answered by sudhanshudhek76
3

Answer:

a = int ( input ( enter first no. ))

b = int ( input ( enter second no. ))

print

the odd no. ( a > 2 )

_____________________________________

a = int ( input ( enter first no.))

b = int ( input ( enter second no. ))

print

the even no. (a < 2)

Answered by OfficialDhek
3

Mark the answer as brainlist

Attachments:
Similar questions