Search found 1 match

by scyphi
Thu Jun 18, 2015 12:45 am
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 43881

Re: 10018 - Reverse and Add

Why is my code giving me wrong answer?


/*Problem 10018*/
#include <stdio.h>

unsigned int addReverse(unsigned int);
int palindrome(unsigned int);

int main() {

int num;
scanf("%d", &num);

unsigned int added, c;
while (num--) {
c = 0;
scanf("%d", &added);
do {
added = addReverse(added ...

Go to advanced search