for-punition
This commit is contained in:
parent
5c568568a6
commit
02e205ab3e
1 changed files with 15 additions and 0 deletions
15
semaine-2/for-punition/main.c
Normal file
15
semaine-2/for-punition/main.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#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