i amm on my 4th C class ever;)
i have taken to the language ok but im stuck trying to declare the values of my 3 variables hers my effort HOPE SUMONE CAN CORRECT THIS MESSY CODE & LEND A HELPING HAND TIA
#include <stdio.h>
#ifdef _WIN32
#include <conio.h>
#else
#include <curses.h>
#endif
int main()
{
float coffee;
float sugar;
float milk;
float average;
coffee = 1.50;
sugar = 0.99;
milk = 0.89;
average = coffee,sugar,mi lk;
printf("\n the cost of a coffe,sugar,mil k,%d is \n",average);
getch();
return 0;
}
trying
i have taken to the language ok but im stuck trying to declare the values of my 3 variables hers my effort HOPE SUMONE CAN CORRECT THIS MESSY CODE & LEND A HELPING HAND TIA
#include <stdio.h>
#ifdef _WIN32
#include <conio.h>
#else
#include <curses.h>
#endif
int main()
{
float coffee;
float sugar;
float milk;
float average;
coffee = 1.50;
sugar = 0.99;
milk = 0.89;
average = coffee,sugar,mi lk;
printf("\n the cost of a coffe,sugar,mil k,%d is \n",average);
getch();
return 0;
}
trying
Comment