This content originally appeared on DEV Community and was authored by Mohammed Salah
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int x , y ;
cout<<" \n \n \t Enter First Number : ";
cin>>x;
cout<<" \n \n \t Enter Second Number : ";
cin>>y;
cout<<" \n \t *******************************************";
cout<<" \n \n \t You have Entered x = ";
cout<<abs(x);
cout<<" \n \n \t You have Entered y = ";
cout<<abs(y);
cout<<"\n\n\n";
cin.get();
return 0 ;
}
This content originally appeared on DEV Community and was authored by Mohammed Salah
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.

APA
MLA
Mohammed Salah | Sciencx (2025-01-21T19:47:18+00:00) C++ 11th code(cmath–>abs). Retrieved from https://www.scien.cx/2025/01/21/c-11th-codecmath-abs/
" » C++ 11th code(cmath–>abs)." Mohammed Salah | Sciencx - Tuesday January 21, 2025, https://www.scien.cx/2025/01/21/c-11th-codecmath-abs/
HARVARDMohammed Salah | Sciencx Tuesday January 21, 2025 » C++ 11th code(cmath–>abs)., viewed ,<https://www.scien.cx/2025/01/21/c-11th-codecmath-abs/>
VANCOUVERMohammed Salah | Sciencx - » C++ 11th code(cmath–>abs). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/21/c-11th-codecmath-abs/
CHICAGO" » C++ 11th code(cmath–>abs)." Mohammed Salah | Sciencx - Accessed . https://www.scien.cx/2025/01/21/c-11th-codecmath-abs/
IEEE" » C++ 11th code(cmath–>abs)." Mohammed Salah | Sciencx [Online]. Available: https://www.scien.cx/2025/01/21/c-11th-codecmath-abs/. [Accessed: ]
rf:citation » C++ 11th code(cmath–>abs) | Mohammed Salah | Sciencx | https://www.scien.cx/2025/01/21/c-11th-codecmath-abs/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.