C PROGRAMMING
write a c progarm to calculate post charges by weight of package
#include<stdio.h>
main()
{
int weight;
printf("Enter the weightn");
scanf("%d",&weight);
if(weight<=20)
{
printf("Charges are 5n");
}
else if(weight<=100)
{
printf("Charges are 9.0n");
}
else if(weight<=500)
{
printf("Charges are 15.0n");
}
else
{
printf("Not by postn");
}
getch();
}