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
3
Answer:
a = int ( input ( enter first no. ))
b = int ( input ( enter second no. ))
the odd no. ( a > 2 )
_____________________________________
a = int ( input ( enter first no.))
b = int ( input ( enter second no. ))
the even no. (a < 2)
Answered by
3
Mark the answer as brainlist
Attachments:
Similar questions