Problem Description - 1/2
Write a program to find the average of the first P multiples of an integer N.
For examples, refer to the sample cases given below.
Function Description
Complete the average function in the editor below. It has the following parameter(s):
Name
Type
Description
N
INTEGER
denotes the integer
Parameters
INTEGER
denotes the number of multiples
Return
The function must return an INTEGER denoting the average of the multiples of a given number..
Constraints
• 1<N< 30
• 1<P <10
€
Input Format For Custom Testing
The first line contains an integer, N, denoting the integer.
The next line contains an integer, P, denoting the number of multiples to consider.
Answers
Answered by
0
Branly is very useful app
Similar questions