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

×

ATM question of easy problem

include<stdio.h>

int main(void) { int x; float y; //printf("enter initial balance"); scanf("%f",&y); //printf("enter balance to be transacted"); scanf("%d",&x); if(((x%5)==0)&(y>=(x+0.5))) y=y-x-0.5; printf("%.2f",y); return 0; }

asked 13 Mar '15, 21:01

p_9453727566's gravatar image

2★p_9453727566
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:

×334
×30
×19

question asked: 13 Mar '15, 21:01

question was seen: 585 times

last updated: 13 Mar '15, 21:01