You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
512 B

/*
* Multiplikationstabelle mit for-Schleife
*
* by Rainer Hihn
*/
#include <stdio.h>
int main(void) {
/*
* vertical and horizontal limit
*/
int hlimit;
int vlimit;
scanf("%d", &hlimit);
scanf("%d", &vlimit);
/*
* for loop vars
*/
int i;
int j;
for(i = 1; i <= vlimit; i++) {
for(j = 1; j <= hlimit; j++) {
printf("%d\t", i*j);
}
printf("\n");
}
printf("\n");
return 0;
}