Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5. int breite = 2;
  6. int hoehe = 2;
  7.  
  8. for(int i = 0; i <= hoehe+1; i++){
  9. if(i == 0 || i == hoehe+1){
  10. for(int j = 0; j <= breite+1; j++){
  11. printf("A");
  12. }
  13. if(i == 0){
  14. printf("\n");
  15. }
  16. }
  17. else{
  18. printf("A");
  19. for(int j = 0; j < breite; j++){
  20. printf("B");
  21. }
  22. printf("A\n");
  23. }
  24. }
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement