Note: We need an author for this blog. Willing people contact Us......

Thursday, 17 November 2016

Dev C++, Predefined example 6

# include <iostream>
# include <cmath>
# include <cctype>
using namespace std;
int main ()
{
int x;
double u,v;
cout<<"the lower case of A is ="<<static_cast<char>(tolower('A'))<<endl;
u=2.2;
v=3.2;
cout<<v<<" to the power of "<<u<<" is ="<<pow(u,v)<<endl;
x=-7;
cout<<"absolute value of -7 is = "<<abs(x)<<endl;
return 0;

}

No comments:

Post a Comment

Contact us

Name

Email *

Message *