Hi all, i was having trouble solving this problem,

Writ a program to read a number n using keyboard where n must be >2.Then program display the multiplication table n rows,n columns and table's entity is i x j. Where i=1,2,...n

j=1,2,...n.

Display each table row in a new horizontal line.

here is my work so far:

Code:#include <stdio.h> #include <conio.h> main() { int i,j,N; if (N>2) printf("Please enter a value greater than 2"); scanf("%d",&N); for(i=1;i<=N;i++) { for(j=1;j<=N;j++) { printf("%d\t",i*j); } printf("\n"); } getch(); }