fork download
  1. #include<stdio.h>
  2. int main(){
  3. int prize;
  4. scanf("%d",&prize);
  5. if(prize>=0){
  6. prize=prize-(prize*0.1);
  7. printf("eligible for discount");
  8. printf("%d",prize);
  9. }else{
  10. printf("here is your price %d",prize);
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 5312KB
stdin
1200
stdout
eligible for discount1080