Program gt; var a,b,c,k:integer; begin k:=0; for a:=0 to 12 do for b:=0 to 10 do for c:=0 to 8 do if(a*15+b*17+c*21=185)then begin k:=k+1; writeln(a,' ',b,' ',c); end; writeln(k,'-кол-во способов'); end. переведите на С++ пожалуйста
#include using namespace std; int main() { int k=0; for (int a = 0; a < 13; a++ ) for (int b = 0; b < 11; b++ ) for (int c = 0; c < 9; c++ ) if (a*15+b*17+c*21==185) { k++; cout<<a<<" "<<b<<" "<<c<<" "<<endl; <br> } cout<<k<<"-кол-во способов"<<endl; <br>system("pause"); return 0; }