top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

find output in following pattern

0 votes
160 views

eg: 12345
1^2+2^3+3^4+4^5+5^5

LOGIC: is first digit should be multiplied to the number of times of the next number,likewise next numbers should be calculated and last digit should be multiplied by the number of times of total digit of the number. for example last 5 is multiplied by 5 because there are 5 digits in this number.

eg 2: 1789

1^7+7^8+8^9+9^4

posted Aug 28, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote
1
4     1
27    8     1
256   81    16   1
3125  1024  143  32   1
+1 vote
1*8+1= 9
12*8+2=98
123*8+3=987
1234*8+4=9876
12345*8+5=98765
123456*8+6=987654
1234567*8+7=9876543
12345678*8+8=9876543 2
123456789*8+9=987654 321
+2 votes
struct marks {
  int a:1;
  int b:2;
};

int main() {
  struct marks obj={1,6};
  printf("%d %d\n",obj.b,obj.a);
}
...