Untitled
unknown
plain_text
2 years ago
412 B
9
Indexable
#include <iostream>
int main() {
double exchangeRate;
printf("Введите текущий курс доллара США к рублю: ");
scanf("%lf", &exchangeRate);
int dollars = 1;
while (dollars <= 20) {
double rubles = dollars * exchangeRate;
printf("%d доллар(ов) США = %.2lf рублей\n", dollars, rubles);
dollars++;
}
return 0;
}
Editor is loading...