Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int i,j,k;
- for(j=1;j<=10;j++)
- {
- for(i=1;i<=10;i++)
- {
- k=i*j;
- cout<<i<<"X"<<j<<"="<<k<<"\t";
- }
- cout<<endl;
- }
- cout<<endl;
- for(j=1;j<=10;j++)
- {
- for(i=11;i<=15;i++)
- {
- k=i*j;
- cout<<i<<"X"<<j<<" = "<<k<<"\t";
- }
- cout<<"\n";
- }
- cout<<endl;
- for(j=1;j<=10;j++)
- {
- for(i=16;i<=20;i++)
- {
- k=i*j;
- cout<<i<<"X"<<j<<" = "<<k<<"\t";
- }
- cout<<"\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement