Just using printf, scanf functions instead of cout, cin.
Solution code is:
<pre>
#include<stdio.h>
#include<string.h>
int askBills(char[] prompt);
void totalExpenses(int car,int rent,int food,int phone,int gas,int util);
int main(){
printf("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(char[] prompt){
int bill;
printf("%s",prompt);
scanf("%d", bill);
return bill;
}
void totalExpenses(int car,int rent,int food,int phone,int gas,int util){
printf("\nYour monthly expenses: %d\n"<<car+rent+food+phone+gas+util);
}