answersLogoWhite

0

void main()

{

int n,b=0,t;

clrscr();

printf("Enter the no");

scanf("%d",&n);

t=n;

while(n>0)

{

a=n%10;

b=b+a*a*a;

n=n/10;

}

if(b==t)

{

printf("Armstrong no");

}

else

{

printf("Not an Armstrong no");

}

getch();

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


Write a c program to print roman letters?

good morning


Can you Write a program in 'c' to print symbols of playing cards?

Yes.


Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


Write a c program to print the 100 to 1 nos?

Write a c program to print the 100 to 1 nos


Write a C Program to print sum of squares of odd numbers?

#include


Write c program to print?

include <stdio.h> int main (void) { puts ("print"); return 0; }


Write a program in 'C' language to accept 6 strings as input and print them in lexicographic?

(ab)*b


Write c program to print palindrome using string without using strrev strlen strcam?

sdfdg


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?


Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program