answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

# define PI 3.14

void main()

{

float radius,area;

clrscr();

printf("Enter the Radius of the Triangle:");

scanf("%f",&radius);

area=PI*radius*radius;

printf("Area = %f",area);

getch();

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

1. C program or source code for find area of trapezium

2. How to calculate area of trapezium in c programming language

#include

int main(){

floatheight,base1,base2;

float area;

printf("Enter the height of the trapezium: ");

scanf("%f%",&height);

printf("Enter length of lower base of the trapezium: ");

scanf("%f%",&base1);

printf("Enter length of upper base of the trapezium: ");

scanf("%f%",&base2);

area = 0.5 * (base1 + base2) * height;

printf("Area of trapezium is: %f",area);

return 0;

}

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

double TriangleArea (double base, double height) {

return 0.5 * base * height;

}

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

void PrintTriangleArea (double a)

{

printf ("Tha area is %g\n", a);

}

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

FILE *to= stdout;

double s= (a+b+c)/2;

double A= sqrt (s*(s-a)*(s-b)*(s-c));

fprintf (to, "Area of the triangle is %g\n", A);

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a source code using C programming to find the area of a trapezium using functions?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Which language is used to write a source program in computer?

There are so many programming languages that it is impossible to tell without actually seeing the source program in question.


What programming language uses a set of grammar and rules that specifies how to write instructions?

Every programming language has rules that specify how to write instructions. Many programming languages are similar, but mostly they all have different styles and ways of writing the same instructions. This is called the syntax.


How is event driven programming different from other programming?

write a note on event driven programming


What do you mean by programming language?

A programming language is a symbolic language that a computer programmer uses to write computer program source code. Source code is non-executable code and must be translated into machine code. A computer can be programmed to perform this conversion and thus produce the required machine code.


What do you know about structure programming language?

first write main function and what are the use classes which type you want then give the data members to the member functions finally you will terminate the program

Related questions

Why do you write programming languages?

To perform Specific Tasks Using Mathematical, Logical and some other specail inbuilt functions and user defined functions.


Programming process of c language?

Write the source program. Compile. Link executable. Run it.


Which language is used to write a source program in computer?

There are so many programming languages that it is impossible to tell without actually seeing the source program in question.


What programming language uses a set of grammar and rules that specifies how to write instructions?

Every programming language has rules that specify how to write instructions. Many programming languages are similar, but mostly they all have different styles and ways of writing the same instructions. This is called the syntax.


How do you change source code into machine code?

A program called a compiler, or sometimes an assembler (depending on the programming language) does this for you. You write the source code, then invoke the program that will convert this into machine language.


What kind of computer programming can be done on the Nebulous Apps website?

Nebulous Apps website allows one to perform text editing functions and write codes. One can write codes for all types of programming involving '.txt', '.md' and '.c' files and preview in both HTML and Markdown.


How is event driven programming different from other programming?

write a note on event driven programming


What do you mean programming language?

A programming language is a symbolic language that a computer programmer uses to write computer program source code. Source code is non-executable code and must be translated into machine code. A computer can be programmed to perform this conversion and thus produce the required machine code.


What do you mean by programming language?

A programming language is a symbolic language that a computer programmer uses to write computer program source code. Source code is non-executable code and must be translated into machine code. A computer can be programmed to perform this conversion and thus produce the required machine code.


How programming language is useful in system programming?

Without programming languages you couldn't write (system) programs.


What do you know about structure programming language?

first write main function and what are the use classes which type you want then give the data members to the member functions finally you will terminate the program


How can you write the text on progress bar?

Writing text on a progress bar depends on the programming language you are using and whether you have access to the source code of the progress bar widget.