#include<iostream>
#include<cmath>
using namespace std;
void read_X();
void table_x();
int X,N=1,table;
void read_X()
{ cout<<"enter the number "<<endl;
cin>>X;
}
void table_x()
{ cout<<"The table of" <<X<< "is"<<endl;
while(N<=10)
{ cout<<X<<"*"<<N<<"= "<<X*N<<endl;
N++;
}
}
int main()
{ //int X,N=1,table;
read_X();
table_x();
}
#include<cmath>
using namespace std;
void read_X();
void table_x();
int X,N=1,table;
void read_X()
{ cout<<"enter the number "<<endl;
cin>>X;
}
void table_x()
{ cout<<"The table of" <<X<< "is"<<endl;
while(N<=10)
{ cout<<X<<"*"<<N<<"= "<<X*N<<endl;
N++;
}
}
int main()
{ //int X,N=1,table;
read_X();
table_x();
}
No comments:
Post a Comment