Ответ смотри на фотографии.
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
double x, percent;
cout << "Enter the number: ";
cin >> x;
cout << "Enter the percentage: ";
cin >> percent;
cout << "\n" << percent << " percent of the " << x
<< " = " << (x / 100 * percent) << endl;
return 0;
}
Var d,time,hours,min:integer;
begin
readln(d);
time:=d*120;
hours:=time div 3600;
min:=time mod 3600 div 60;
writeln('it is ',hours,' hours ',min,' minutes');
end.
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
if (n/100 == n%10)
cout << "YES\n";
else cout << "NO\n";
return 0;
}
Пример:
323
YES
Var a,b,c:real;
begin
writeln ('Введите стороны');
read (a,b);
writeln ('Введите угол в радианах');
read (c);
writeln (a*b*sin(c));
end.