Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
asdfs
FILE_Access
Leap year check
B_141212_RolloPunteros
string_ptr_to_fct_param
avance 2 guía 4
Command Expressions in Gnu C
FUNCTIONS Shape functions
1.8 Parallizing for loop
18BCE2182 ASSESS_3 Q1
Please log in to post a comment.