Преобразование кодирования из C++ в C
#include<iostream> #include<string> using namespace std; int askBills(string prompt); void totalExpenses(int car,int rent,int food,int phone,int gas,int util); int main(){ cout << "Manage your budget and see how much you can save!\n\n"; int income = askBills("\nMonthly income:$ "); int car = askBills("\nCar payment:$ "); int rent = askBills("\nMonthly rent:$ "); int food = askBills("\nFood expenses:$ "); int phone = askBills("\nPhone bill:$ "); int gas = askBills("\nEstimated gas expenses:$ "); int util = askBills("\nMonthly utilities:$ "); totalExpenses(car, rent, food, phone, gas, util); system("pause"); return 0; } int askBills(string prompt){ int bill; cout << prompt; cin >> bill; return bill; } void totalExpenses(int car,int rent,int food,int phone,int gas,int util){ cout << "\nYour monthly expenses:$ "<<car+rent+food+phone+gas+util <<="" endl;="" } What I have tried: <b="">What I have tried: This is my coging, but i need to convert it to c
[no name]
Простой вопрос.