#include <iostream>
using std::cout;
using std::endl;
int main()
{
const int arraySize = 20;
float cheapest;
float a[arraySize] = { 14.60, 15.50, 53.20, 44.80, 48.60, 12.65, 21.20, 32.50, 51.20, 17.50, 12.65, 14.60, 15.50, 53.20, 44.80, 48.60, 21.20, 32.50, 51.20, 17.50 };
cheapest = a[0];
for(int i = 1; i < arraySize; i++)
{
if(cheapest > a[i])
{
cheapest = a[i];
}
}
cout << "Cheapest candy cost " << cheapest << "grn" << endl;
return 0;
}
Поделитесь своими знаниями, ответьте на вопрос:
Решить, ! a: =2**3 / (5**2-23) ; b: =sqrt (25) s: =sqr (a) p: =a*4 d: =a*sqrt (2) c: = mod (12, a) +div (12, b) end.
а=8/2=4;
b=5;
S=16;
P=16;
d=4
;
c=0+2=2;