1.

Solve.1) Write a program in C++ that Subtraction of two numbers.​

Answer»

Hello

#INCLUDE

#include

using namespace std;

int sub(int,int);

int main()

{

int num1,NUM2;

cout<<"ENTER two numbers: \n";

cin>>num1>>num2;//

cout<<"Subtraction of two numbers : "<

getch();

return 0;

}

int sub(int num1, int num2)//function definition

{

if(num2==0)

return num1;

else

return sub((num1-1),(num2-1));

}



Discussion

No Comment Found