Please upvote me. Need karma points to ask questions. Thanks !

# Need Karma Points

**vijju123**#2

Wait, what?

You asked a Q stating that you need karma to ask a Q? Am I missing something?

EDIT- And whats this āconverted to Q X mins agoā thing? Can anyone explain about that? I would appreciate it!

**vikasj554**#3

How did you manage to ask question if you didnāt have karma points ?

Is this 'cause of new system ? (bug or something)

**swetankmodi**#5

I think he posted that (the current question) as an answer and someone upvoted him. 1 Hour ago he clicked on convert answer to question and hence the result

**ash_code**#6

So this is the question for which you needed karma points. This should be marked as community wiki

**swarazoid**#8

how do i gain karma points to ask question ?

should i ask here?

maybe if someone sees this please solve this.

the question is from beginners section FLOW007 - reversing the number.

the code goes:

#include<stdio.h>

#include<math.h>

int main()

{

int t,num,temp,n,i,j,sum;

scanf("%d",&t);// no of test cases

while(t>0){

scanf("%d",&num);// asking the number

temp=num;

n=0;

while(temp>0){

temp=temp/10;

n++;// counting no of digits in the number given

}

int a[n];

sum=0;

for(i=0;i<n;i++){

a*=num%10;// storing each digit in an array cell

num=num/10;

sum=sum + a**pow(10,(n-(1+i)));//summing by expanding

```
}
printf("%d
```

",sum);

tā;

}return 0;

}

i am getting correct reversed number for all numbers except 3-digit numbers.

please solve someone.

thanks

**vijju123**#9

#include<stdio.h>

#include<math.h>

int main()

{

int t,num,temp,n,i,j,sum;

scanf("%d",&t);// no of test cases

while(t>0)

{

scanf("%d",&num);// asking the number

temp=num;

n=0;

while(temp> 0)

{

temp=temp/10;

n++;// counting no of digits in the number given

}

int a[n];

sum=0; for(i=0;i< n;i++)

{

a*=num%10;// storing each digit in an array cell

num=num/10;

sum=sum + a**pow(10,(n-(1+i)));//summing by expanding

}

printf("%d

",sum);

tā;

```
}
return 0;
}
```

What are you saying? Your code passed all test cases. Copy-paste it and try again. See here.

**guywhogeek**#13

Please upvote me. I need 3 karma to ask questions. 2 remaining.

Thank God this thread exist.

**sai_praneeth**#17

Do we really need more than 3 karma points to ask a question. Why not solving the problems should be criteria.

**coder26548**#20

replace your sum line code with the following line sum=sum + a**(float)pow(10,(n-(1+i))); . Now your code will work fine.