gcd.c

来自「ARM公司ATC培训的所有练习源码」· C语言 代码 · 共 30 行

C
30 行
字号
//
//  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 + =
减小字号Ctrl + -
显示快捷键?