Computer Science, asked by ramsmedicine, 1 month ago

2. Write a program to to display the value stored in DIFF after finding the difference of two numbers 200 (assigned to X) and 100 (assigned Y).

pls tell me this answer

Answers

Answered by srivastavaadityakuma
0

Answer:

using c++:

#include<iostream>

int main()

{

int x,y,diff;

cout<<"Enter the value of x";

cin>>x;

cout<<"Enter the value of y";

cin>>y;

diff=x-y;

cout<<"The obtained difference is:<<diff<<endl;

return 0;

}

ask me if u have any doubt

please mark me as brainliest

Explanation:

Similar questions