Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  a.exe
Language: C/C++
Code:
#include <iostream>
using namespace std;

int main(){
  int t, k, l=1, a;
  cout<<"Table Printing Program"<<endl;

  cout<<"What table do you wanted to print: ";
  cin>>t;

  a = t;

  cout << endl<< a <<" Table"<< endl << endl;
  for(k=t; k<=t*10; k+=t){
    cout<< a << " x " << l << "\t=\t" << k << endl;

    l++;

  }






















  cout<<"\nType 0 to exit"<<endl;
  while(a!=0){
    cin>>a;
  }
  return 0;
}
Comments: