1- write a C program that allow user to enter the value of base and height of triangle and then calculate the area of triangle by the following equation:
area = 0.5*base*height
and then that print the area?
2-write a C program that allow user to enter the radius of circle then calculate and print the area of circle by using the equation:
area=PI*raduis2 , where PI constant and its value=3.14
السؤال
مصعب عبد الكريم
أرجو حل هذه المسائل الاتيه :
1- write a C program that allow user to enter the value of base and height of triangle and then calculate the area of triangle by the following equation:
area = 0.5*base*height
and then that print the area?
2-write a C program that allow user to enter the radius of circle then calculate and print the area of circle by using the equation:
area=PI*raduis2 , where PI constant and its value=3.14
وشكرآ
5 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.