help needed

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2009
Posts: 1
Reputation: saramv is an unknown quantity at this point 
Solved Threads: 0
saramv saramv is offline Offline
Newbie Poster

help needed

 
0
  #1
Apr 5th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: help needed

 
0
  #2
Apr 5th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,955
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 281
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: help needed

 
0
  #3
Apr 5th, 2009
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.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC