Tag Archive: Prime Number

Sep 17

Concept of Function in c++

Once a function is written, you can call it any number of times. By calling a function, you transfer execution of the program to the function- definition code, which runs until it is finished or until it encounters a  return statement. Example of Avg Function void main(){ double a=5; double b=6; cout<<“AVG is” << avg(a,b); cout<<endl } double avg(double …

Continue reading »