matrix

observe the following coding in java and find the output:--

     // log on to comprogzz.in
       int a[]={2,3,5,6,8,9,1};
     for(int i=6;i>2;i--)
     a[i]=a[i-1];
     a[2]=34;
     int s=0;
      for(int i=0;i<=6;s=s+a[i],i++);
      System.out.println(s);

// log on to comprogzz.in


The answer is 67.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...