Sunday, June 6, 2021

simple program using function (POP) (154)

#include<iostream>

using namespace std;


void product()

{

int num1,num2,mul;

cout<<"enter first number:";

cin>>num1;

cout<<"enter second number:";

cin>>num2;

mul=num1*num2;

cout<<"the product is:"<<mul<<endl;

}

int main()

{       

product();

} 

No comments:

Post a Comment