Commit 74a2079d by Karine

Exercise_05_23, Version2

parent a590f5e0
#include <iostream>
#include <cmath>
int
main()
{
for(int i = -4; i <= 4; ++i) {
for(int j = -4; j <= 4; ++j) {
if(std::abs(i) + std::abs(j) <= 4) {
std::cout << "*";
}
else {
std::cout << " ";
}
}
std::cout << std::endl;
}
return 0;
} /*
int
main()
{
......@@ -34,4 +53,4 @@ main()
return 0;
}
*/
*
***
*****
*******
*
***
*****
*******
*********
*******
*****
***
*
*******
*****
***
*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment