I just learned C this morning and I have a simple question. I have a program called donut.c and the code is like this:
then when I want to execute donut, the instruction is:Code:#include <stdio.h> int main() { float dozen_donut_cost; int donuts_eaten; int i = 0; float donuts_cost; return 0; }
./donut < t0
where the file t0 contains:
3.00 12 .5 .5 .5 .5 .5 .75 .75 .75 .75 1.0 1.0 1.0
how do I assign the variable dozen_donut_cost so that it equals 3.00? Which is the first value in file?? Thanks