Share Post:
A number is armstrong if the sum of cubes of individual digits of a number is equal to the number itself. For example 371 is an armstrong number as 3^3 + 7^3 + 1^3 = 371.
#include <stdio.h> //header file
#include<conio.h> //header file
int main()
{ //start of main body
int number, sum = 0, temp, remainder;
Showing posts with label c program armstrong number. Show all posts
Showing posts with label c program armstrong number. Show all posts
Thursday, March 6, 2014
Subscribe to:
Posts (Atom)