Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <sstream>
- using namespace std;
- int main(){
- cout.width(10);
- for(int i=1;i<=10;i++){
- cout<<i;
- cout.width(4);
- }
- cout<<"\n";
- cout.width(10);
- for(int i=1;i<=10;i++){
- cout.fill('_');
- cout<<"_";
- cout.width(4);
- }
- cout.fill(' ');
- cout<<"\n";
- for(int i=1;i<=10;i++){
- cout.width(3);
- cout<<i<<" | ";
- for(int j=1;j<=10;j++){
- cout.width(4);
- cout<<i*j;
- }
- cout<<"\n";
- }
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement