/*****************************************************************/ // File : multable.c // Purpose : To display the Multiplication table of the given number. // Author : Nanda Kishor K N // Mail Id : knnkishor@yahoo.com, nandakishorkn@rediffmail.com // Website : www.c4swimmers.esmartguy.com ( WEB MASTER ) // Group : c4swimmers@yahoogroups.com ( GROUP OWNER ) /*****************************************************************/ #include /* Name : main() Purpose : This is the main function that computes and display the Multiplication table of the given number. This does not call any other function. Parameter : None */ int main() { // Variable Declarations & Initialization // Naming conventions are used like all integer variables should begin with 'i' int iN,iIdx,iRes; printf("Enter number : "); scanf("%d",&iN); // Compute and Display the Multiplication Table. for (iIdx = 1; iIdx <= 20; iIdx++) { iRes = iN * iIdx; printf("\n%d * %d = %d",iN,iIdx,iRes); } return 0; } // End of Program