C Program to Compute sum of the array elements using pointers !
In this program , base address of the array is stored inside the pointer variable and using pointer the sum of array element is computed.
In this program , base address of the array is stored inside the pointer variable and using pointer the sum of array element is computed.
Program : A program to evaluate the power series [crayon-62bec9f48cd78682160074/] It uses if......else to test the accuracy. The power series contains the recurrence relationship of the type [crayon-62bec9f48cd82049629786/] If Tn-1 (usually known as previous term) is known, then Tn (known as present term) can be easily found by multiplying the previous term by x/n. Then [crayon-62bec9f48cd85540769256/] C Program for Exponent Series : [crayon-62bec9f48cd88600603439/] Output : [crayon-62bec9f48cd8b993354987/]
Problem Statement : Write a program to read the values of x, y and z and print the results of the following expressions in one line. (x+y+z) / (x-y-z) (x+y+z) / 3 (x+y) * (x-y) * (y-z) [crayon-62bec9f48d18d045071269/] Output: [crayon-62bec9f48d195177792117/]
An electric power distribution company charges its domestic consumers as follows [crayon-62bec9f48d4f9499175468/] Write a C program that reads the customer number and power consumed and prints the amount to be paid by the customer. [crayon-62bec9f48d500678417447/] Output : [crayon-62bec9f48d504166607528/]
Program : C Program to demonstrates binary expressions using floating-point arithmetic [crayon-62bec9f48d8ac745550948/] Output : [crayon-62bec9f48d8b3670659762/] Floating Pointer Can perform following Operations : Addition Subtraction Division Multiplication Note : Floating Point Data Type Can't Perform Modulus Operation [crayon-62bec9f48d8b6237510811/] Output : [crayon-62bec9f48d8b9478346817/]
C Program : C Program to demonstrates binary expressions using integer arithmetic [crayon-62bec9f48dc79443333209/] Output : [crayon-62bec9f48dc80453227013/] Explanation : In order to print "%" symbol inside printf, use "%%". because % symbol has pre-defined meaning inside printf statement.
C Program to find greatest in 3 numbers [crayon-62bec9f48dffd733103438/] Output : [crayon-62bec9f48e00a028240890/]
C Program to calculate gross salary of a person. [crayon-62bec9f48e361661647183/] Output : [crayon-62bec9f48e367482478396/]
[crayon-62bec9f48e6be284951932/] Output : [crayon-62bec9f48e6c5886901636/]
C Program to calculate sum of 5 subjects and find percentage [crayon-62bec9f48ec3a907382498/] Output : [crayon-62bec9f48ec41896398178/]
Program to convert temperature from degree centigrade to Fahrenheit [crayon-62bec9f48f183078881481/] Output : [crayon-62bec9f48f18a388699325/]
C Program to find the simple interest [crayon-62bec9f48f4d3402998966/] Output : [crayon-62bec9f48f4da079064313/]
C Program to find area and circumference of circle [crayon-62bec9f48fa27117598640/] Output : [crayon-62bec9f48fa2e867613983/] Explanation of Program : In this program we have to calculate the area and circumference of the circle. We have following 2 formulas for finding circumference and area of circle. [crayon-62bec9f48fa31225280529/] and [crayon-62bec9f48fa34226495320/] In the above program we have declared the floating point variable PI whose value is defaulted to 3.14.We are accepting the radius from user. [crayon-62bec9f48fa36779652112/] Download C Program : [box style="download"]Download Area Of Circle Program | Right Click and Save As[/box]
Program : C Program to find sum of two numbers [crayon-62bec9f48ffee290801252/] Output : [crayon-62bec9f48fff5291041509/]
Program : To obtain solution of second order quadratic equation [crayon-62bec9f490547462125907/] Output : [crayon-62bec9f49054e212777090/]
[crayon-62bec9f490897283079485/] Recursive Function : [ Click Here ]
Simple C Program to find the factorial of the number.
C Program to print table of n and n^2.