Skip to content

Commit

Permalink
Add kattis prob dicecup in C
Browse files Browse the repository at this point in the history
  • Loading branch information
iandioch committed Mar 1, 2017
1 parent 139e4bc commit d5fa0be
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kattis/dicecup/solution.c
@@ -0,0 +1,15 @@
#include <stdio.h>

int main() {
int a, b;
scanf("%d %d", &a, &b);
if (b < a) {
int c = a;
a = b;
b = c;
}
int i;
for (i = a+1; i < b+2; ++i) {
printf("%d\n", i);
}
}

0 comments on commit d5fa0be

Please sign in to comment.