Example of IF statement:(on turbo) - IT learner
Headlines News :
Home » » Example of IF statement:(on turbo)

Example of IF statement:(on turbo)

Written By Unknown on Monday, December 2, 2013 | 8:01 AM

# include<stdio.h>
# include<conio.h>
  voide main();
  {
      clrscr();
      int pay, dis, total;
      printf("Payment=");
      scanf("%d", &total);
      if(pay<200)
      {
              dis=pay*5/100;
              total=pay-dis;
       }
       if(pay>=200)
       {
               dis=pay*15/100;
               pay=total-dis;
        }
        printf("Total=%d", total);
        getch();
   }
Share this article :

0 comments:

Speak up your mind

Tell us what you're thinking... !

 
Support : Copyright © 2014. IT learner - All Rights Reserved
Template Created by IT-Learner Published by Khim Leader
Proudly powered by Khim Vicheka