Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (14 sloc) 0.268 kB
#include <stdio.h>
float fnGetAverage(int a, int b){
float c;
c = (a+b)/2;
return c;
}
void main(){
int x,y;
float z;
printf("\nEnter the values for x and y\n");
scanf("%d %d", &x, &y);
z = fnGetAverage(x,y);
printf("\nThe average is %f", z);
}
Jump to Line
Something went wrong with that request. Please try again.