FEU - East Asia College ACM Student Chapter
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» “Cochin builders: Symbol of Innovative Architecture”
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

» Dropbox - HIGHLY RECOMMENDED AND EXTREMELY USEFUL
Mon Nov 08, 2010 1:30 am by arscariosus

» Anyone has watched The Social Network?
Sun Oct 24, 2010 4:09 pm by arscariosus

» 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

April 2018
MonTueWedThuFriSatSun
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Calendar Calendar


Easy Programming Challenge for ITEC113 students

Go down

Easy Programming Challenge for ITEC113 students

Post by arscariosus on Thu Aug 05, 2010 4:54 pm

This challenge only involves basic I/O and certain arithmetic operators. Very Happy

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. Smile
avatar
arscariosus
Level 0

Posts : 82
Reputation : -1
Join date : 2010-07-07
Age : 29
Location : Philippines

View user profile http://skewedbutshrewd.wordpress.com/

Back to top Go down

Re: Easy Programming Challenge for ITEC113 students

Post by haze07 on Sun Aug 08, 2010 10:26 am

arscariosus wrote:This challenge only involves basic I/O and certain arithmetic operators. Very Happy

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. Smile

OooOOoh i know this one..tip lng mathematical operations lng sya na nasa loob ng loop Very Happy

_________________
Name: Clive Karsten A. Lim
Course/Year: BS-CS 3rd Year

haze07
Level 0

Posts : 18
Reputation : 1
Join date : 2010-07-08
Age : 26

View user profile

Back to top Go down

Re: Easy Programming Challenge for ITEC113 students

Post by Chyrl on Sun Aug 08, 2010 2:29 pm

A palindrome kind of problem.

_________________
David Paul E. Badiola
Director for Education
200810270
chyrl@live.com
avatar
Chyrl
Level 0

Posts : 16
Reputation : 0
Join date : 2010-07-12

View user profile

Back to top Go down

Re: Easy Programming Challenge for ITEC113 students

Post by arscariosus on Sun Aug 08, 2010 4:01 pm

Hehe. I stumbled upon it on Java : How To Program 7th Ed. Very Happy
avatar
arscariosus
Level 0

Posts : 82
Reputation : -1
Join date : 2010-07-07
Age : 29
Location : Philippines

View user profile http://skewedbutshrewd.wordpress.com/

Back to top Go down

Re: Easy Programming Challenge for ITEC113 students

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum