// Code derived from Stroustrup's PPP2 book// § 3.4 Operations and operators// -beginning on p 67#include<cmath>#include<iostream>usingstd::cin;usingstd::cout;usingstd::sqrt;// simple program to exercise operatorsintmain(){cout<<"Please enter a floating-point value: ";doublen;cin>>n;cout<<"n == "<<n//<<"\nn + 1 == "<<n+1//<<"\nthree times n == "<<3*n//<<"\ntwice n == "<<n+n//<<"\nn squared == "<<n*n//<<"\nhalf of n == "<<n/2//<<"\nsquare root of n == "<<sqrt(n)//<<'\n';// another name for newline (“end of line”) in output}