Computer Science, asked by hetraj1359, 1 month ago

Find the value of sum when:
(a) val= 600 (b) val= 1600
int val, sum, n= 550;
sum= n + val > 1850 ? 500 : 300;

Answers

Answered by llMissCrispelloll
1

Answer:

\huge{\underline{\underline{\mathcal{\orange{Answer}}}}}

class boards

{

    void outputbasedquestions()

    {

        int x=5;

        System.out.println(5*++x);  //ICSE 2005

        x=5;

        System.out.println(5*x++);  //ICSE 2005

       

        int m=5;

        int n=2;

        m-=n;

        System.out.println("m is = " +m);

        m=5;

       n=2;

        n=m+m/n;

        System.out.println("n is =" +n);

       

        int a=0, b=30, c=40;

        a=--b+c+ ++b;                    //ICSE 2006

        System.out.println("a = " +a);

Similar questions