Computer Science, asked by kaifi68azmi, 11 months ago

A shopkeeper announces two successive discount 20% and10% on purchasing of goods on the marked price.write a program to input marked price and calculate the selling price of an article

Answers

Answered by ojalojaswi20
2

Explanation:

plzzz answer I also need answer

Answered by kalpana3966
3

Answer:

please see if it helps,

Explanation:

import Java. io. *;

class X

{

int mp;

double sp, dis 1,dis 2 ;

public static void main (sting args [ ] ) throws IOExpception

{

Buffered Reader orj = new Buffered Reader (new input stream Reader (system in) ) ;

system. out. print Ln ("Enter the marked price of an article ") ;

mp = Integer . parseInt (orj read Line ( ) ) ;

dis 1 = mp* 0.2 ;

dis 2 = mp* 0.1 ;

sp = mp - ( dis 1 - dis 2) ;

system . out . printLn ( "the selling of an article is" + sp) ;

}

}

Similar questions