Computer Science, asked by Anonymous, 1 year ago

plzz answer the question.....

Attachments:

Answers

Answered by Styengun
1

l am writing only the body part of the program.

int n ;

double s=0.0,t=0.0;

if ( n >=0 && n<=999)

{

s = (15 * n )/100;

t=n-s;

}

if (n >= 1000&n <=3999)

{

s = (18*n)/100;

t= n-s;

}

if(n>=4000 & n<= 6999)

{

s = (20*n)/100;

t= n-s;

}

if( n>= 7000)

{

s = (25*n)/100;

t=n-s;

}


Styengun: hey something wrong is happening. .i am writing one and something else is getting posted
Styengun: let me break it and write:
Styengun: for(i=1;
Styengun: i<=N
Styengun: same problem
Anonymous: We have to write the statement(i=1;i<=n;i++)
Anonymous: ????
Styengun: no the middle part is not getting posted properly
Styengun: it would be i less than equal to N
Anonymous: Ooo
Similar questions