#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();
}
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;
}
double TriangleArea (double base, double height) {
return 0.5 * base * height;
}
void PrintTriangleArea (double a)
{
printf ("Tha area is %g\n", a);
}
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);
There are so many programming languages that it is impossible to tell without actually seeing the source program in question.
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.
write a note on event driven programming
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.
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
To perform Specific Tasks Using Mathematical, Logical and some other specail inbuilt functions and user defined functions.
Write the source program. Compile. Link executable. Run it.
There are so many programming languages that it is impossible to tell without actually seeing the source program in question.
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.
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.
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.
write a note on event driven programming
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.
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.
Without programming languages you couldn't write (system) programs.
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
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.