









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Lecture 12
float sum ( int a, int b, int c )
three calling parameters, all of which are ofDocsity.com
float sum ( int a, int b, int c) { float total; total = a + b + c ; return total;
value = sum ( i, j, k ) ; or value = sum ( 5, 6.73, 2 ) ; Docsity.com
#include <stdio.h>
long factorial ( int x ) ;
int main ( )
{
int k; for ( k=0 ; k<=10 ; k++ ) { printf ("%2d factorial is %ld\n", k , factorial (k) ) ; }
?
?
Problem G