1.
#include<stdio.h>
2.
#include<conio.h>
3.
void main()
4.
{
5.
int
t,n,on,i,d,r,c,s;
6.
clrscr();
7.
printf("\n\tEnter Any Number ");
8.
scanf("%d",&r);
9.
for(on=1;on<=r;on++)
10.{
11.n=on;
12.t=n;
13.s=0;
14.while(n!=0)
15.{
16.d=n%10;
17.c=d*d*d;
18.s=s+c;
19.n=n/10;
20.}
21.if(t==s)
22.{
23.printf("\n\tArmstrong =%d",s);
24.}
25.}
26.getch();
27.
}
|
| Output
|
Computer Science :: 11th/12th, Computer Engineering :: Degree/Diploma, Coding Concept ( C, C++ & JAVA Programming, JDBC Concept, DBMS - SQL Concept, Data Structure, Communication & Network Concept.
ARMSTRONG NUMBER ON GIVEN RANGE
Subscribe to:
Comments (Atom)
JAC Board Computer || IIT 2025 || Introductory Information Technology || Class 10 || Practical Examination 2025
Marks Division HOE 30 Marks IT Application Report File 20 Marks Viva - Voce 10 Marks 1) Write an HTML code to generate a web p...
-
1) TCP/IP - Transmission Control Protocol/ Internet Protocol. 2) HTTPs - Hyper Text Transfer Protocol. 3) ICT - Information Comunication Te...
-
1) What is Make Code Arcade? Answer: Make Code Arcade is a coding platform that enables to create block – based program. 2) How ...
-
Programmingway@Eklavya Technosys!: New Year's 2025 | Happiness & Healthier's Life Sty... : भारत कई धर्मों का संगम है, हिंदू, मुस...

No comments:
Post a Comment