Computer Science, asked by dhaniramprajapati216, 7 months ago

write program to divide the sum of two number by the difference of same number

Answers

Answered by krpalashish842
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 DJBINOD007X
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