i have to write a code for this:
Coffee mugs sells for $3.49 each.
write code that declares a variable in which to store the number of mugs and intitalizes it to mugs.
is this right.
also i have to write code that would declare an approprialtey named constant in which to store to that price.
is this code right
Coffee mugs sells for $3.49 each.
write code that declares a variable in which to store the number of mugs and intitalizes it to mugs.
Code:
int=mugs; int=nomugs; noMugs=0;
also i have to write code that would declare an approprialtey named constant in which to store to that price.
Code:
const float=3.49 int=mugs; int=total;
Comment