fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. for(int i = 0; i <= n; i++){
  8. for(int j = i; j <= n; j++){
  9. if(i == 0 % 2){
  10. cout << "*" << endl;
  11. }
  12. }
  13. for (int k = 0; k <= n; k++){
  14. if(k == 0 % 2){
  15. cin >> k;
  16. cout << "e" << endl;
  17. }
  18.  
  19. for (int q = 0; q <= n; q++){
  20. if(q == 0 % 2){
  21. cin >> q;
  22. cout << "*" << endl;
  23. }
  24. }
  25. }
  26. }
  27.  
  28. return 0;
  29. }
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
*
e
*