C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-25-2008, 11:00 AM   #1
Registered User
 
Join Date: Nov 2008
Posts: 2
Inversed integer

How to use function in C programming to inverse a digit? Such as 345 become 543! Help is deeply appreciated! I'm really stuck!
afiq8289 is offline   Reply With Quote
Old 11-25-2008, 11:03 AM   #2
C++ Witch
 
laserlight's Avatar
 
Join Date: Oct 2003
Location: Singapore
Posts: 10,354
What have you tried so far?
__________________
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar

Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
laserlight is online now   Reply With Quote
Old 11-25-2008, 11:19 AM   #3
Registered User
 
Join Date: Sep 2008
Posts: 45
Strip each digit with the % operator and store it an array and print it out in reverse order?
blurx is offline   Reply With Quote
Old 11-25-2008, 11:36 AM   #4
Registered User
 
Join Date: Oct 2008
Location: TX
Posts: 1,262
there are a few ways of going about this and as laserlight suggested show us what you got and someone will help out.
itCbitC is offline   Reply With Quote
Reply

Tags
c programming, inversed, problem

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
memory issue t014y C Programming 2 02-21-2009 12:37 AM
Link List math t014y C Programming 17 02-20-2009 06:55 PM
Looking for constructive criticism wd_kendrick C Programming 16 05-28-2008 09:42 AM
No Match For Operator+ ??????? Paul22000 C++ Programming 24 05-14-2008 10:53 AM
load gif into program willc0de4food Windows Programming 14 01-11-2006 10:43 AM


All times are GMT -6. The time now is 11:42 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22