#include<iostream>
using namespace std;
int main(){
int inec;
for (int x=1;x<=18;x++)
for (int y=1;y<=9;y++)
for (int z=1;z<=18;z++){
inec=x+2*y+z;
if ((inec>=7)&&(inec<=21))
cout<<"x="<<x
<<" y="<<y
<<" z="<<z<<endl;
}
cin.get();
}
No hay comentarios:
Publicar un comentario