Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

repeating of staement

$
0
0
#include <stdio.h>

int main(void) { float bal,total; int amt; printf("enter the amount"); scanf("%d%f",&amt,&bal); if(amt%5==0 && amt<bal) { total=bal-amt; printf("the balance is=%f\n",total); } else { printf("you have entered the wrong text%f\n",bal); } return 0; }

why enter the amount statement is repeating with the output of result


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>