Harvard's CS50 Problem Set 1: C _Smart Water
10:20:00 AM
After CS50 Week 1 Wednesday & Friday
What is the problem "Smart Water"?
http://cdn.cs50.net/2015/fall/psets/1/pset1/pset1.html#smart_water
http://cdn.cs50.net/2015/fall/psets/1/pset1/pset1.html#smart_water
What's my result?
What did I learn?
printf ("Minutes: %i\n",i);
printf ("Bottles: %d\n", x);
Found out that the red highlighted i is not there to match the yellow i.
%i means a variable integer, i means a defined integer i.
Same thing applies with %d and x
What was my reference?
The % Format Specifiers
https://www.le.ac.uk/users/rjm1/cotter/page_30.htm
0 comments