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
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
Math,
22 days ago
Social Sciences,
22 days ago
Hindi,
22 days ago
Math,
1 month ago
Hindi,
8 months ago