yes. /* trapezoid.c */ #include #include float f(float); float a; float b; float x; float h; float sum; int n; int i; int main() { printf("Enter value for a: "); scanf("%f", &a); printf("Enter value for b: "); scanf("%f", &b); printf("Enter number of rectangles: "); scanf("%d", &n); h = (b - a) / n; sum = (0.5 * h) * (f(a) + f(b)); printf("%f\n", sum); for (i = 1; i < n; i++) { sum = sum + h * f(a + (i * h)); printf("%f\n", sum); } printf("The value of the integral is: %f\n", sum); } float f(float x) { float value; /* define function here */ value = x*x + 3; return value; }
Write and run a client and a server program in C-language using UDP
Yes.
How to write the program un Assembly language to set a password for personal computers?
first think of the logic and then write the statements
Yes, you can write a program in C language which connects to a database.
Write and run a client and a server program in C-language using UDP
write an assembly language program to find sum of N numbers
write a program to print A to Z on screen in c?
Yes.
A program that understand what a human would write and be able to transform that into instructions that a computer could understand.
A program that understand what a human would write and be able to transform that into instructions that a computer could understand.
How to write the program un Assembly language to set a password for personal computers?
write program to concatenating two sting in 8086 assembly language
first think of the logic and then write the statements
ponka
You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.
You need an 8086 assembly language pencil.