Programming languages have functions because, they are the set of operations that may be applied to objects of that particular class.
for an example I will attach a function, you just check it
brainliest pls
 
        
        
        
Answer:

Explanation:
Given
On Earth

On the moon

Required
The astronaut's mass on the moon
The mass of an object do not change base on location
So, if the mass of the astronaut is 80kg on earth, it will be 80 kg on the moon.
Hence:

 
        
             
        
        
        
In psuedocode it would be:
length = input()
width = input()
area = length * width
print(area + " sq ft");
        
             
        
        
        
Answer: Static local variable is a variable that is initialized as static only one time inside a function and whenever it is called in that function it will be accessible.
Explanation: Static local variables are very useful variables which are declared as static in a particular function. Static local variable is initialized only one time in a function and whenever the function in which it has been declared ,the value of the variable will be accessible by as many times it has been called in the function in which it is declared.