Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Taco practice
//MIDTERM QUESTION Z=X+++--Y // x=1,y=2,z=0 //y=y-1 //z=x+y // // // #include <stdio.h> int main(void) { int carCount=10; int numAtoms=7; int boxCount=10; int numItems=10; int costDrink=2; int costTacos=3; int numDrink=4; int numTacos=6; int totalCost; totalCost=numDrink*costDrink; totalCost=totalCost+(numTacos*costTacos); printf("Total cost: %d\n", totalCost); numItems=boxCount+1; printf("numItems is %d\n", numItems); numAtoms+=5; printf("numAtoms is %d\n", numAtoms); numAtoms=7; numAtoms*=2; printf("numAtoms is %d\n", numAtoms); carCount=carCount/2; printf("carCount is %d\n",carCount); return 0; //x++ and ++x is the same effect for incrementing }
run
|
edit
|
history
|
help
0
Goodone for understanding array passing
BigInteger maxMinSum
BMI Calc CT
150115_EsMatrizOrdenada
QuickSort
CO Assignment 1 Question 1
Lab 7 blackjack v0.1
sreesasu
PRACTICE FINAL 2
Project 3 Part 1 v1.3