Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  a.exe
Language: C/C++
Code:
#include <stdio.h>

int main() {
  int t, k=0, l=0, temp;

  printf("Table Printing Program\n");
  
  printf("\nWhich Table Do You Need?: ");
  scanf(" %d", &t);

  temp =t;

   printf("\n******** %d Table ********\n\n",t);

  for(k=t; k<=t*10; k+=t){
    printf("%d x %d\t=\t%d\n",t, l+1, k);
    l++;
    
  }

  printf("\nType 0 to exit\n");
  while(t!=0){
    scanf(" %d", &t);
  }
  return 0;
}
Comments: