write program to divide the sum of two number by the difference of same number
Answers
Answered by
2
Answer:
#include<iostream>
using namespace std;
int main()
{
int a,b,ans;
cin>>a>>b;
if(a>b){
ans=(a+b)/(a-b);
}else{
ans=(b+a)/(b-a);
}
cout<<ans;
}
Explanation:
Answered by
3
Answer:
public class abc {
public static void main (int x, int y){
int s;
s=(x+y)/(x-y);
System.out.println ("The desired result =" +s);
}
}
And it's done!!!
Hope it helped you successfully...
Please mark my answer as the brainliest one...
Similar questions
Math,
3 months ago
Math,
3 months ago
English,
3 months ago
Accountancy,
7 months ago
Science,
10 months ago
Biology,
10 months ago
Business Studies,
10 months ago