?? fun1.c
字號:
/* fun1.c: Illustrates a C function */
#include <stdio.h>
float avg(int n, int m)
{
return (n + m) / 2.0;
}
int main()
{
int x, y;
puts("Enter the 1st number:");
scanf("%d", &x);
puts("Enter the 2nd number:");
scanf("%d", &y);
printf("The average is %.2f\n", avg(x,y));
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -