WRITE A PROGRAM TO CHECK DISCOUNT ON A GIVEN AMOUNT


#include<stdio.h>
#include<conio.h>
void main()
{
int amnt;
clrscr();
printf("ENTER AMOUNT");
scanf("%d",&amnt);
if(amnt>1000)
{
amnt=amnt-100;
}
printf("Amount Payable is %d",amnt);
getch();
}

0 comments: (+add yours?)

Post a Comment