📄 fun3.c
字号:
/* fun3.c: Illustrates a function prototype */
#include <stdio.h>
float avg(int, int); /* Prototype */
int main() {
int x, y;
puts("Enter the first number:");
scanf("%d", &x);
puts("Enter the second number:");
scanf("%d", &y);
printf("The average is %.2f\n", avg(x,y));
return 0;
}
float avg(int n, int m) {
return (n + m) / 2.0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -