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
stringify
Length width.c
hwk2
Dynamic array
Prgm
Lab 7 blackjack v1.1
hippo he Rhoda shalbert now ring one white car bomb ching
Comment.c
B_141212_RolloPunteros
Hello