Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
yashinomi committed Oct 16, 2020
1 parent d7e29c1 commit 7be9fbe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions debug_test_codes/sum.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <stdlib.h>
#include <stdio.h>


int main(int argc, char const *argv[]){
int sum = 0;
int beg = atoi(argv[1]);
int end = atoi(argv[2]);

for (int i = beg; i <= end; i++){
sum += i;
}
printf("%d\n", sum);
return 0;
}

0 comments on commit 7be9fbe

Please sign in to comment.