[Deleted Post]
3 posters
Page 1 of 1
[Deleted Post]
[Deleted]
Last edited by arscariosus on Fri May 25, 2018 11:04 am; edited 1 time in total
arscariosus- Level 0
- Posts : 69
Reputation : -1
Join date : 2010-07-07
Age : 22
Location : Philippines
Re: [Deleted Post]
arscariosus wrote:This challenge only involves basic I/O and certain arithmetic operators.
Create a program that accepts a 5-digit integer and would output the all the digits individually separated by three spaces each and on the next line, output the numbers in reversed order.
Example:
Enter a five digit integer : 54691
Example Output:
5 4 6 9 1
1 9 6 4 5
RULES:
You must have a single variable, so having multiple placeholders such as this scanf("%d%d%d%d%d", a, b, c, d, e) is NOT allowed.
Thanks.
OooOOoh i know this one..tip lng mathematical operations lng sya na nasa loob ng loop
haze07- Level 0
- Posts : 18
Reputation : 1
Join date : 2010-07-08
Age : 32
Re: [Deleted Post]
A palindrome kind of problem.
Chyrl- Level 0
- Posts : 16
Reputation : 0
Join date : 2010-07-12
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Thu Jul 18, 2013 8:11 pm by shevsoe
» SPICE (Cobol IDE)
Mon May 06, 2013 5:36 pm by 200730059
» YMCA and Global Services
Thu Sep 01, 2011 2:35 pm by Rene Churchill
» useDelimeter
Thu Jun 23, 2011 11:02 am by ern_andrew
» The City of Cochin
Thu Jun 16, 2011 7:31 pm by GhosnBachelder
» LIFE and LOVE GURU
Sat Oct 09, 2010 1:42 am by kggc09
» Interested to be an Adhoc?
Fri Oct 08, 2010 2:47 pm by rmsalazar
» Meeting! Officers + Members (Open Meeting)
Fri Oct 08, 2010 2:45 pm by rmsalazar
» Indescribable - Louis Giglio
Thu Oct 07, 2010 12:03 am by rmsalazar