i am trying to print multiplication table by using for loop but it is showing only the last one instead of displaying all. :(
#include <iostream>
using namespace std;
int main()
{
int i,j, k;
cout<< "enter i value";
cin>> i;
for(j=0;j<20;j++)
k=i*j;
cout<< k <<endl;
return 0;
}