Powered by Blogger.

Translate

Tuesday, June 26, 2012

Home » » using nested while loop dev c++

using nested while loop dev c++

/* using nested while loop
1 2 3 4 5
2 4 6 8 10
3 6 9 12 15
4 8 12 16 20
5 10 15 20 25
*/
#include<stdio.h>
#include<conio.h>
main()
{
  int i,j,m;
  i=1;
  while(i<=5)
  {
             j=1;
             while(j<=5)
             {
             m=i*j;
             printf("%d\t",m);
             j++;
             }
             i++;
             printf("\n");
             }
             fflush(stdin);
             getchar();
             }
            
Share this games :

0 comments:

Post a Comment