943,822 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 403
  • C RSS
Apr 5th, 2009
0

help needed

Expand Post »
Hi Guyz,
There is two questions please help out in making program.

Q)write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not.

Q)write a program to print out all Armstrong numbers between 1 and 500.if sum af cubes of digits of the number is equal to the number it self,then the number is called an Armstrong number. For example,153=(1*1*1)+(5*5*5)+(3*3*3).
Last edited by saramv; Apr 5th, 2009 at 11:51 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
saramv is offline Offline
1 posts
since Apr 2009
Apr 5th, 2009
0

Re: help needed

Post the code, whatever you have tried.

We only give homework help to those who show effort
http://www.daniweb.com/forums/announcement118-2.html
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Apr 5th, 2009
0

Re: help needed

Leap year : A year is a leap year if it is divisible by 4. Except if it is also divisble by 100, then it can only be a leap year if it is divisible by 400.
Reputation Points: 2035
Solved Threads: 644
Senior Poster
ddanbe is offline Offline
3,738 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Redirecting input into my C program from a file. How to even start?
Next Thread in C Forum Timeline: char** for string array problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC