Pages

Thursday, March 27, 2014

C Program to demonstrate use of nested loop

/*example of nested loop*/
#include <stdio.h>
#include<stdlib.h>
int main()
{
    int i,j;
    for (i=1;i<=5;i++)
    {
        printf("\n");
        for (j=1;j<=5;j++)
            printf("%d \t",i*j);
    }
    system("pause");
    return 0;
}

No comments:

Post a Comment