Posted by: prankster March 2, 2011
IT -- Solutions Center[Forum]
Login in to Rate this Post:     0       ?        
Dont have C#, hope following helps, its in C, there might be better way to do it,

http://codepad.org/tHtarDZI



Link: http://codepad.org/tHtarDZI    [ raw code | output | fork ] Save this paste 
Delete this paste

C, pasted just now: 
#include<stdio.h>
void main()
{
   int firstNumber = 7;
   int secondNumber = 11;
   int i;
   for (i = firstNumber; i <= secondNumber; i++)
   {
     printf("\t%d", i);
   }
   printf("\n");
   int j;
   for (i = firstNumber; i <= secondNumber; i++)
   {
       printf("%d\t", i);
       for (j = firstNumber; j <= secondNumber; j++)
       {
          printf("%d\t", i*j);
       }
       printf("\n");
   }
}


Output:
1
2
3
4
5
6
	7	8	9	10	11
7	49	56	63	70	77	
8	56	64	72	80	88	
9	63	72	81	90	99	
10	70	80	90	100	110	
11	77	88	99	110	121	

Read Full Discussion Thread for this article