Odpowiedź:
kod w c++
#include <iostream>
int main()
{
int d, d1, d2, c1, c2;
std:: cin >> d >> d1 >> c1 >> d2 >> c2;
int cena_krotkie, cena_dlugie;
cena_krotkie = (d / d1) * c1;
cena_dlugie = (d / d2) * c2;
if (cena_krotkie > cena_dlugie) std::cout << "krotsze";
else std::cout << "dluzsze";
return 0;
}
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Odpowiedź:
kod w c++
#include <iostream>
int main()
{
int d, d1, d2, c1, c2;
std:: cin >> d >> d1 >> c1 >> d2 >> c2;
int cena_krotkie, cena_dlugie;
cena_krotkie = (d / d1) * c1;
cena_dlugie = (d / d2) * c2;
if (cena_krotkie > cena_dlugie) std::cout << "krotsze";
else std::cout << "dluzsze";
return 0;
}