Compare commits
No commits in common. "02e205ab3e774c2711fe3bc6407f29c01a4ab73c" and "6b746625211adc9131a12ed0bda2a6796237083c" have entirely different histories.
02e205ab3e
...
6b74662521
2 changed files with 0 additions and 33 deletions
|
@ -1,18 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#define MULTIPLICAND 9
|
|
||||||
#define TARGET 7101
|
|
||||||
|
|
||||||
int main(void) {
|
|
||||||
|
|
||||||
int i = 0, result;
|
|
||||||
|
|
||||||
do {
|
|
||||||
result = MULTIPLICAND * i;
|
|
||||||
i++;
|
|
||||||
} while (result < TARGET);
|
|
||||||
|
|
||||||
printf("%i", i - 1);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#define MULTIPLICAND 7
|
|
||||||
#define TARGET 100
|
|
||||||
|
|
||||||
int main(void) {
|
|
||||||
|
|
||||||
int i;
|
|
||||||
|
|
||||||
for (i = 1; i <= TARGET; i++) {
|
|
||||||
printf("%03i x %i = %03i\n", i, MULTIPLICAND, i * MULTIPLICAND);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue