source code to calculate the height of the building (C + +)
Unknown8:33 PM 0 comments

to calculate the height of a building using a programming language, especially C + +, you can use the code and put it in the program C + +, Borland C + + or the like.

below is a sample code from C + + programming:
==============================

#include<iostream.h>
#include<conio.h>
#include<math.h>
double tangen (double a)
{
double t;
t=tan(a);
return(t);
}
double sudut(double a)
{
double s;
s=a/180*3.14;
return(s);
}
main()
{
double a,b;
cout<<"distance value : ";cin>>a;
cout<<"input angle value: ";cin>>b;
cout<<"so the result is:  ";endl;
cout<<(a*tangen (angle (b)));
getch();
}
==============================
if you want to ask about anything else, please leave a comment. thanks
In Category :
About The Author Ali Bajwa Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore. Magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Facebook and Twitter

0 comments

Post a Comment