refine test use function

This commit is contained in:
Colin 2022-01-05 03:47:27 +00:00
parent 6567357739
commit 0eb74fdc10
1 changed files with 4 additions and 8 deletions

View File

@ -152,15 +152,11 @@ int printf(const char* format, ...) {
// #include <stdio.h>
// int add (int a,int b){
// return (a+b)*(a-b);
// }
int add(int a, int b) { return (a + b) * (a - b); }
int main() {
printf("Hello RISCV!\n");
// whisperPrintDecimal(321);
// int a = add(1,23);
// return a;
int a = 3;
return a * a;
int a = add(1, 23);
printf("a:%d\n", a);
return 0;
}