Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main ( )
- {
- int A, B;
- cout<<"A kenari girin: ";
- cin>>A;
- cout<<"B kenari girin: ";
- cin>>B;
- for(int i = 1; i <= A; ++i)
- {
- for(int j = 1; j <= B; ++j)
- {
- if(i == 1 or i == A or j == 1 or j == B)
- cout<<"*\t";
- else
- cout<<"\t";
- }
- cout<<"\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement