Advertisement
askarulytarlan

лиса

Nov 25th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cmath>
  4. #include <math.h>
  5.  
  6.  
  7. using namespace std;
  8.  
  9. int n;
  10. int m;
  11.  
  12. int main()
  13. {
  14. cin >> n >> m;
  15. int k = n;
  16. while (true){
  17. for (int j = 1; j <= m; j++){
  18. cout << "#";
  19. }
  20. k = k - 1;
  21. if (k > 0){
  22.  
  23. }
  24. else{
  25. cout << endl;
  26. return 0;
  27. }
  28. cout << endl;
  29. for (int j = 1; j <= m - 1; j++){
  30. cout << ".";
  31. }
  32. cout << "#";
  33. k = k - 1;
  34. if (k > 0){
  35.  
  36. }
  37. else{
  38. cout << endl;
  39. return 0;
  40. }
  41. cout << endl;
  42. for (int j = 1; j <= m; j++){
  43. cout << "#";
  44. }
  45. k = k - 1;
  46. if (k > 0){
  47.  
  48. }
  49. else{
  50. cout << endl;
  51. return 0;
  52. }
  53. cout << endl;
  54. cout << "#";
  55. for (int j = 1; j <= m - 1; j++){
  56. cout << ".";
  57. }
  58. k = k - 1;
  59. if (k > 0){
  60.  
  61. }
  62. else{
  63. cout << endl;
  64. return 0;
  65. }
  66. cout << endl;
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement