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
addition
20171116_PI
Lab 10 v1
18BCE2182 LAB FAT-2(A)-(i)
to find a number is even or not
18BCE2182 ASSESS_1 Q1-6
Spring 2017 Project 2 v1.2
Project 3 Part 1 v1.0
Beginning linux
LECTURA DE CADENAS CON FGETS