What's wrong with this code? https://pastebin.com/giKgpvQn
this code is correct (in c language)
long long int n,r,rev_n=0;
rev_n = rev_n*10 + r;
your code doesnot print the reverse of a number and u have not closed int main() see properly .
hope u will get what i am trying to say.
Because you’re using return 0 statement inside the test case while loop…So after reading one data and print it and goes to return…No further query is happening.
if the return 0; will be otside while(t–), then it will not affect it and he is also missing } at last .
please verify .