Write a c program to find average of 3 numbers using function.

Write a c program to find average of 3 numbers using function.

Write a c program to find average of 3 numbers using function. #include <stdio.h>int main(){    int k, h, n;    void avera(int k, int h, int n);    printf(“Enter all 3 number one by one\n\n”);    scanf(“%d %d %d”, &k, &h, &n);    avera(k, h, n);}void avera(int k, int h, int n){    float average;    average = (k + h + n) / 3.0;    printf(“The Average of Your 3 Number is %f”, average);} Output Enter all 3 number one …

Read more

Write a program in C to display the multipliaction table vertically from 1 to n with using loops

Write a program in C to display the multipliaction table vertically from 1 to n with using loops #include <stdio.h>void main(){   int i, m, table = 1;   printf(“Enter the number\n”);   scanf(“%d”, &m);   for (int i = 1; i <= 10; i++)   {      table = (m * i);      printf(“%d X %d is %d\n”, i, m, table);   }} …

Read more