/*Tanel Toova 2-2 * Kirjutada programm, mis väljastab korrutustabeli lihtsal kujul */ #include int x; // declaration of integer type variable x int y; // declaration of integer type variable y int main(void) { /*following loop increases x by 1 until x is equal or greater than ten *next loop does the same for y*/ for(x=1; x<=10; x++) { for(y=1; y<=10; y++) { //following line writes out result of x*y on a field with lenght of 5 characters printf("%5d", x*y); } printf("\n"); //this ends the line and starts the next one } return 0; }