printf ("%g\n", (n+1.0)/2);
Chat with our AI personalities
how to get the arithmetic average on pascal
to find the average (a.k.a mean) of any set of numbers you add all of the numbers up, then divide by however many numbers there are. for ex: 2,7,5,9,4 1st step: 2+7+5+9+2= 25 2nd step: 25 divided by 5= 5 average equals=5
1. write a 'c' program to read 4(four)numbers from a file 'BANK' and calculate the average of the numbers.Now print the calculated average in another output file 'AVERAGE' 2. write a 'c' program that finds the sum and average of inputted five integer numbers of the array using dynamic memory allocation function malloc(). 3. write a 'c' program to create simple elements 1,2,3,4 in the link list of 4(four)nodes and display the list's elements. 4. write a 'c' program to convert the expression (A+B)/(C+D) into postfix expression into stack.and then evaluate it for A=10,B=20,C=15,D=5 and display the stack status after each operation. 5. write a 'c' programto create a linked list implemented on an array containing the following numbers:1,2,3,3,3,4,4,9 and pack it to remove the duplicate numbers.so that only the following data are contained by the nodes:1,2,3,4,9
N = x If y < N then N = Y If z < N then N = z Print N
program to find maximum of two numbers using pointers