0

С++

как решить задачу на 7 заданные

2nd Dec 2022, 9:24 PM
Oleksandr Yatskiv
Oleksandr Yatskiv - avatar
13 Answers
+ 1
поподробнее?
11th Dec 2022, 6:11 PM
technocat
technocat - avatar
+ 1
и какой номер урока c++
12th Dec 2022, 6:03 PM
technocat
technocat - avatar
0
#include <iostream> using namespace std; int main() { // your account's balance auto balance = 2452.4; // price for each notebook auto price = 259.99; // Task: calculate the number of notebooks you can afford and output it. // Hint: use an integer to store the result. int total=balance/price; int cout<<total<<endl; // Task: calculate the amount left over on your account after the purchase and output it on a new line. // Hint: calculate the total price of the purchase, then substract it from the balance cout<<balance-(total*price);
12th Dec 2022, 6:37 AM
Oleksandr Yatskiv
Oleksandr Yatskiv - avatar
12th Dec 2022, 3:04 PM
technocat
technocat - avatar
0
Так?
12th Dec 2022, 3:04 PM
technocat
technocat - avatar
0
Ні нажаль
12th Dec 2022, 4:29 PM
Oleksandr Yatskiv
Oleksandr Yatskiv - avatar
0
А что не так
12th Dec 2022, 6:00 PM
technocat
technocat - avatar
0
Может ты перепутал c или c# c с++?
12th Dec 2022, 6:05 PM
technocat
technocat - avatar
0
7,це є с++ я нічого не переплутав
12th Dec 2022, 6:50 PM
Oleksandr Yatskiv
Oleksandr Yatskiv - avatar
13th Dec 2022, 2:52 PM
technocat
technocat - avatar
0
так?
13th Dec 2022, 2:52 PM
technocat
technocat - avatar
0
(подробный код прошлый, я его изменил)
13th Dec 2022, 2:53 PM
technocat
technocat - avatar
0
Як назло ні Вибач що твій час затримав
13th Dec 2022, 6:27 PM
Oleksandr Yatskiv
Oleksandr Yatskiv - avatar