Recent in Fashion

Best Seller Books

Area of triangle in C Language

C Language

Area of triangle in C Language :



#include<stdio.h>
main()
{
int a,b,area;
printf("\nenter the base of triangle = ");
scanf("%d",&a);

printf("\nenter the height of triangle = ");
scanf("%d",&b);

area=(a*b)/2;
printf("\nArea of triangle = %d",area);


}

Output :

Base of Triangle      :  456

Height of Triangle :  234

Result i.e. Area of triangle :  53352 




Subscribe Our Newsletter

avatar
"i am a web developer. you can find me all over internet with my single username @iamvishveshs ✨."

Related Posts

0

Post a Comment

We Love Hearing from You!
Thank you for reading our post! Your thoughts and opinions are important to us. Please leave a comment below to share your feedback, ask questions, or start a discussion. We look forward to engaging with you!

Note: Comments are moderated to ensure a respectful and positive environment.

Article Top Ads

Parallax Ads

POST ADSENSE ADS
HERE
THAT HAVE BEEN PASSED

Article Center Ads

Article Bottom Ads

Code Copied!