Computer Science, asked by vishal0804, 4 months ago

Q2. Write a program to accept the cost price of a bike and
display the road tax to be paid according to the following cri
Cost price (in Rs)
> 100000
> 50000 and <= 100000
<= 50000
Tax
15 %
10%
5%

Answers

Answered by lasiyalayush24
12

Answer:

#include<iostream.h>

#include<conio.h>

void main()

{

int bikeprice;

cout<<"enter the value";

cin>>bikeprice;

if( bike>100000)

{

cout("tax=15%)

}

elseif( bike>50000 and bikeprice<=100000)

{

cout("tax=10%)

}

else

{

cout(tax=5%)

}

getch();

}

Answered by jayasmita08
0

Answer:

x=0

c=int(input("Enter the cost of the bike: "))

if c>100000:

   x=15/100*c

   print("Tax value=15%",x)

elif c>500000 and c<=100000:

   x=10/100*c

   print("Tax value=10%",x)

elif c<=500000:

     x=5/100*c

     print("Tax value=5%",x)

else:

   print("There is no tax")

Similar questions