Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
If then price calculation v1
//gcc 5.4.0 #include <stdio.h> int main(void) { int age; int price=100; double discount=.15; double newprice; newprice=price-(price*discount); printf("What is your age?\n"); scanf("%d",&age); if(age<=25){; printf("Your price is $%lf",newprice); } else{printf("Your price is $%d",price); }; }
run
|
edit
|
history
|
help
0
My first structure
qsort para struct
Anutter juan
holiwis
19_1_7
My first 2D array
Goodone tricky
FloatInt
1.1 Hello World!
B_141209_TrianguloTartalia