Preview:
#include <stdio.h>
#include <stdlib.h>

void aveTwo(float n1,float n2);
int main() {
    float n1=10;
    float n2=7;
    float average;
    average = (n1+n2) / 2.0;
    printf("the average of %f and %f is %f \n",n1,n2,average);
    
     return 0;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter