4th Semseter files
This commit is contained in:
12
4th-Semester-Spring-2023/Embedded/Lectures/Lecture01/Jan19_SubF.c
Executable file
12
4th-Semester-Spring-2023/Embedded/Lectures/Lecture01/Jan19_SubF.c
Executable file
@@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
|
||||
float average(int a, int b, int c)
|
||||
{
|
||||
return (a + b + c) / 3.0;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("%4.3f\n", average(4, 5, 6));
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user