No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Is there any other code written for a coke machine program. We’ll start by having the user “insert” their money. Since they can’t physically insert the money, we will just ask them how much they wish to insert and we will keep track of how much money they have inserted. … | |
I am trying to write a code that asks for the user first and last name and concatenate the function displaying the user's lastname and then firstname example: bob allen // first and then last name allen, bob // last and then first name using the concatenate function: This is … | |
When using loop functions or statements which loop statement do you prefer to use that would be easy for a beginner like me to use: The do while loop, for loop, or while loop. I ask because I am to re-write my code from using the If statement to using … | |
[B]My code seems to stop working after first prompt for please insert money can anyone tell me where in my code am I lacking.[/B] [code=c] #include <stdio.h> int main() { char drinkchoice; float insert; float money; float totalinsert; printf("How much do you wish to insert: "); scanf("%f", &insert); if(insert < … |
The End.