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
If Statement/ Decrements V2
Eee
CO Assignment 1 Question 1
string_ptr_to_fct_param_v2
C141106_TablaMultiplicar
Find a Node Sibling Test
Shapes and such
20171103_factorial
p20
EXercice