Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Aim: To implement program to calculate area of cube using inline function.
Code:
inline void area_cube(float side)
{
float area;
area=6*side*side;
cout<<"\nArea of cube with side "< } void main() { int side; clrscr(); cout<<"Program to calculate area of Cube:"; cout<<"\n Enter side of cube:"; cin>>side; area_cube(side); getch(); } Output: Program to calculate area of Cube: Enter side of cube:7 Area of cube with side 7 cm is 294 cm²
}
void main()
int side;
clrscr();
cout<<"Program to calculate area of Cube:";
cout<<"\n Enter side of cube:";
cin>>side;
area_cube(side);
getch();
Output:
Program to calculate area of Cube:
Enter side of cube:7
Area of cube with side 7 cm is 294 cm²
how to pass array
Purchasing Code Signing Certificate I want to purchase a Code Signing Certificate in good standing from someone in order to sign my .EXE programs with. Please be aware I do n
Nested Classes Many a times, it becomes essential to have a class contain properties of two other classes. One way is to explain a class within another - that is a class with m
Why copy constructor accepts reference to an object and not the object itself, whether ah hence it we do otherwise
program that decodes sending smuggler''s string
write a C program for padovan string for a natural number
Within programs we very often want to execute a different section of code, depending upon various conditions within C the If statement is used to achieve this. The If statement con
Available, and the right kind of programs. My son wants to stop using ice. He has organised detox a number of times, and is always successful. It is the next stage, rehab, where
make a program on run time dynamic arrays
#question.to determine the area of a triangle,rectangle and trapezium
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd