Write a program to calculate the triangle's area in c

Write a program to calculate the value of the triangle's area. Take the value of r as input.

#include<stdio.h>
#include<conio.h>
void main() {
	float a,r,A;
	printf("Enter the value of Radius\n");
	scanf("%d", &r);

	a = 3.14;

	A = a*r*r;
	
	printf("Area= %d\n", A);
}

kabeer

Added  Jun 21, 03:56 pm

Article tags

×
Google login
SignUp with Email
X