#include <iostream>
using namespace std;
int main(){
for (int i=0; i<=10; i++){
for (int j=0; j<=10; j++){
if (j==i || -j+10==i){
cout<<"x";
}
else{
cout<<" ";
cout<<endl;
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include <iostream>
using namespace std;
int main(){
for (int i=0; i<=10; i++){
for (int j=0; j<=10; j++){
if (j==i || -j+10==i){
cout<<"x";
}
else{
cout<<" ";
}
}
cout<<endl;
}
}