You are not logged in. Please login at www.codechef.com to post your questions!

×

Solution getting wrong answer ATM

include<stdio.h>

int main() { int n; float m=0.5; float a,p; scanf("%d",&n); a=120; if(n%5==0 && n<a) {

printf("\t%f",a);
p=a-(n+m);
printf("\n%f",p);
}
else
if(n%5==0 && n>a)
{
    printf("insufficent funds");

}
else
{
    printf("incorrect withdrawal amount");
}

}

asked 21 Aug '18, 21:22

neharika123's gravatar image

0★neharika123
1
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×190

question asked: 21 Aug '18, 21:22

question was seen: 70 times

last updated: 21 Aug '18, 21:22