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
141122_PI6
Programação em C, testes
Practice flipping the stars
FILE_Access
strcmp
prime numbers min>max
c union bytes affected
C_141126_ArrayRepetidos
FUNTION3
abc