C Language (Time Table) DO While Loop

#include
#include

void main()
{
 clrscr();
 int a,c,s;
 printf("Enter value");
 scanf("%d",&s);


 a=1;
 do
  {
  c=s*a;
 printf("\n %d", s);
 printf(" x ");
 printf("%d",a);
 printf(" = ");
 printf("%d" ,c);
a++;
  }
  while (a<=10);
 getch();

}

Comments

Popular posts from this blog

NICOSIA