By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,779 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,779 IT Pros & Developers. It's quick & easy.

how do i program this?

P: 1
I need a program that:

Ask the user how much data they have
For every number entered print the number and whether it was larger or smaller, and by how much, than the previous number.
Compare the first number to 0.

example: if i enter the numbers:


the output should look something like:
45 45 larger
62 17 larger
23 39 smaller
39 16 larger
97 58 larger
68 29 smaller
70 2 larger


p.s. its for my class and my teacher has like no clue what she is doing and this is a project, i hope you guys can help me.
Dec 4 '06 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 3,652
What ideas do you have, and what code have you got so far?
Dec 4 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.