Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- #include <windows.h>
- #include <cmath>
- using namespace std;
- void dibuja(int x,int y){
- for(int f=1;f<=y;f++){
- for(int c=1;c<=x;c++){
- if(f==1||f==y||c==1||c==x){
- cout<<"*";
- }
- else
- cout<<" ";
- }
- cout<<endl;
- }
- }
- int main(){
- int l,a;
- cout<<"L:";cin>>l;
- cout<<"A:";cin>>a;
- dibuja(l,a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement