Excellent Code
simply excellent ...
Pages
Home
Request for more
C++ : find cube of (a-b)
#include<iostream>
#include<cmath>
#include<conio.h>
using namespace std;
int main()
{
float a,b;
cout<<"a = ";
cin>>a;
cout<<endl;
cout<<"b= ";
cin>>b;
cout<<endl<<endl;
cout<<"The cube of ("<<a<<"-"<<b<<") is "<<pow((a-b),3);
getch();
return(0);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment