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