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

×

Problem Loading...

Note Loading...

Set Loading...