Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
c
//gcc 7.4.0 #include <stdio.h> int main(void) { int code , number , price , sum; printf("Enter Product Code (-1 for END):"); scanf("%d", &code); while(0 < 1){ switch(code){ case 1: price = 24000; printf("Enter Quantity: "); scanf("%d" , &number); printf("Invoice amount so far: %d" , number*price); break; case 2: price = 40000; printf("Enter Quantity: "); scanf("%d" , &number); printf("Invoice amount so far: %d" , number*price); break; case 3: price = 70000; printf("Enter Quantity: "); scanf("%d" , &number); printf("Invoice amount so far: %d" , number*price); break; case 4: price = 31300; printf("Enter Quantity: "); scanf("%d" , &number); printf("Invoice amount so far: %d" , number*price); break; case 5: price = 110000; printf("Enter Quantity: "); scanf("%d" , &number); printf("Invoice amount so far: %d" , number*price); break; case -1: } } return 0; }
run
|
edit
|
history
|
help
0
thread SleepWakeup and mutex
My first program
THIS one uwu
1.c
20171116_TARTAGLIA
Array Practice
Michael Bean's Spring 2017 Lab 3 v1.1
HW2A
pseudo hw v.05
C_141127:MatricesUnSoloIndice