Program to print table between the given range of integers

//Program to print table between the given range
#include<stdio.h>
#include<conio.h>
int main()
{
  int row, col,y,k;
  clrscr();
  printf("Enter the two numbers for getting the table between their range\n");
  scanf("%d%d",&row,&col);
  k=row;
  printf("Table as\n");
  for(y=1;y<=10;y++)
  {
    for(row;row<=col;row++)
    {
      printf("%4d",row*y);
    }
    row=k;
    printf("\n");
  }
  getch();
  return 0;
}


To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.

1 comment: