DEV Community

Mohammed Salah
Mohammed Salah

Posted on

C++ 11th code(cmath-->abs)

    #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 ; 
    }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay