📄 gcd.c
字号:
//
// Session 4 - Exercise 7
//
#include <stdio.h>
int gcd(int, int);
int main(void)
{
int result = 0;
int a = 9;
int b = 15;
// Call GCD function
result = gcd(a, b);
// Print result to console
printf("The GCD of %d and %d is %d", a, b, result);
// Exit
return 0;
}
int gcd(int x, int y)
{
// Insert your code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -