Answer:
The python function is as follows:
def fact(N):
factorial = 1
for i in range(1,N+1):
factorial = factorial * i
return(factorial)
Explanation:
This line defines the function
def fact(N):
This line initializes the product of 1 to N to 1
factorial = 1
This line iterates through 1 to N
for i in range(1,N+1):
This line calculates the product of 1 to N i.e. factorial
factorial = factorial * i
This line returns the factorial
return(factorial)
Answer:
B.
Explanation:
Mark Brainliest if correct!
(a) To run a software => RAM
(b) To store a software => ROM
Answer:
It would be the third one
Explanation:
Sence the cable is longer it dims down some of the connection.
// writing c++ function
int maximum ( int a , int b){
if(a>b)
return a;
else
return b;
}
//when this function will be called it will return the max of the integers sent.
//for example
int max = maximum ( 3,4)
//max variable will have 4 returned by the function