Автор: Sula Cpp (03.11.2012 в 17:51)
#include <iostream>
#include <cmath>
using namespace std;
int main()
{int a,b,c,d,e,X;
char Y,No,Yes;
cout<<"Hello my friend. Please write 5 numbers"<<endl;
cin>>a>>b>>c>>d>>e;
X=a*b*c*d*e;
cout<<"Do you really want to multiply "<<a<<", "<<b<<", "<<c<<", "<<d<<", "<<e<<"?"<<endl;
cin>>Y;
if (Y=Yes){
cout<<"Result is equal "<<X<<". You can restart or close the programm"<<endl;
}
else (Y=No){
cout<<"Ok. Close the programm, please."<<endl;
}
system ("pause");
return 0;
}
Пытался сделать усложненную форму перемножителя 5 чисел а полюбасу нечитает такой вариант. Пожалуйста ошибку найдите