Find Area of rectangle in C++.


 #include<iostream.h>

#include<cconio.h>

int main( )

{

int height;

float area, breath;

court<<"Enter the height";

cin>>height;

cout<<"Enter the breath";

cin.>>breath;

area=(0.5)*height*breath;

cout<<"area of triangle is"<<area;

getch( );

return 0;

}

To run:

















Output:






Join our telegram channel for the latest update...

https://t.me/joinchat/TFUu2Bk5JiR9mjcpvnWBMA




No comments:

Post a Comment

theengineerschoice01@gmail.com