varunme
0
Newbie Poster
Recommended Answers
Jump to PostHere's some working code:
#include <stdio.h> int main(int argc, char** argv) { int i=0,j=0; int p = 1; int size = 0; char input[100]; scanf("%s",input); while(input[size] != '\0') ++size; while(i<size) { char c = input[size-1-i]; if( c < '0' || c > '9') return 1; j += …
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
PieterBeyens
14
Newbie Poster
WaltP
commented:
We don't do homework for people - he *help* them find their own solutions
+14
hwoarang69
11
Newbie Poster
TrustyTony
commented:
code remembers only single digit not whole integer!
+0
Fiverivers
-2
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.