12/08/2021
//Program to show the use of simple if statement
void main ()
{
float amt=0,dis=0,total=0;
printf("Enter amount:");
scanf("%f",&amt)
if(amt>=500)
dis=50.0;
total=amt-dis;
printf("Total amount:%f",total);
}