Answers

2016-01-16T18:37:45+05:30
Import java.util.Scanner;
class parcel
{
void main()
{
Scanner c=new Scanner(System.in);
System.out.println("enter the weight of your parcel");
Double wt=sc.nextDouble();
if(wt>=1)
System.out.println("the price is RS 30");
else
{
wt=wt-1;
Double price=wt*10*.5+30;
System.out.println("the price is"+price);
}
}
0
2016-01-16T21:19:55+05:30