mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 03:59:57 +08:00
14 lines
305 B
C++
14 lines
305 B
C++
#include <stdio.h>
|
|
#include "head.h"
|
|
|
|
int main()
|
|
{
|
|
int a = 20;
|
|
int b = 12;
|
|
printf("a = %d, b = %d\n", a, b);
|
|
printf("a + b = %d\n", add(a, b));
|
|
printf("a - b = %d\n", subtract(a, b));
|
|
printf("a * b = %d\n", multiply(a, b));
|
|
printf("a / b = %f\n", divide(a, b));
|
|
return 0;
|
|
} |