I wanna output the table but can't get the desired output!!!
//table generator.
#include<iostream>
#include<conio.h>
using namespace std;
int table() {
int a;
for( int i=1; i<=20; i++ ) {
cout <<"\t"<<a<<"*"<<i<<"="<<a*i<<endl; }
}
int main()
{
int n;
cout << " >>>This Program Takes a Number From User And Generates its 20 Multiples<<<\n\n";
cout << "Enter the number : ";
cin >> n;
cout << "Here's the table of " << n << endl;
n = table();
getch();
}