Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ( )
  5. {
  6. int A, B;
  7.  
  8. cout<<"A kenari girin: ";
  9. cin>>A;
  10. cout<<"B kenari girin: ";
  11. cin>>B;
  12.  
  13. for(int i = 1; i <= A; ++i)
  14. {
  15.  
  16. for(int j = 1; j <= B; ++j)
  17. {
  18. if(i == 1 or i == A or j == 1 or j == B)
  19. cout<<"*\t";
  20. else
  21. cout<<"\t";
  22. }
  23. cout<<"\n";
  24. }
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement