41223113/cp2023

  • Home
    • SMap
    • reveal
    • blog
  • About
  • replit
    • step1
    • step2
    • step3
    • step4
  • W2
  • W5
  • W6
    • C程式練習
    • Taiwan
    • USA
    • Chinese
    • Japan
    • UK
    • korea
  • W12~13
  • W15
  • experience
  • file
  • Brython
W6 << Previous Next >> Taiwan

C程式練習

#include <stdio.h>

// 函数原型
int test(int x, int y);

int main(void) {
    printf("%d", test(2, 3));
    printf("\n%d", test(2, 3));
}

int test(int x, int y) {
    return x == y ? (x + y) * 3 : x + y;
}

W6 << Previous Next >> Taiwan

Copyright © All rights reserved | This template is made with by Colorlib