Предмет:
ИнформатикаАвтор:
rebeccaАвтор:
noeliaeqrfАвтор:
spikeАвтор:
jasoncookОбъяснение:
1)
int main()
{
int a;
float b;
cout << "enter length in centimeters "; cin >> a;
b = a / 2.5;
cout<<"length in inches = " << b << endl;
}
2)
int main()
{
float a,b,c,d,e;
cout << "enter the number of books purchased "; cin >> a;
cout << "enter their price "; cin >> b;
cout << "enter the price of purchased notebooks "; cin>>c;
cout << "enter their price "; cin >> d;
e = a * b + c * d;
cout << "Total price " << e;
}
3)
int main()
{
float a,b,c;
cout << "enter the length of the first leg "; cin >> a;
cout << "enter the length of the secomd leg "; cin >> b;
c = (a*b) / 2;
cout << " S= " << c;
}
Автор:
marksДобавить свой ответ
Предмет:
АлгебраАвтор:
bentleyrlwuОтветов:
Смотреть
Предмет:
ИнформатикаАвтор:
chungОтветов:
Смотреть
Предмет:
Русский языкАвтор:
kyleeyd1kОтветов:
Смотреть