Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
pllkkj
//gcc 5.4.0 #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; }https://play.google.com/store/apps/details?id=vrpatel0018.cprograms /*program to print Armstrong number*/ #include<stdio.h> #include<math.h> int main() { int n,d,t,sum=0,nt,count; printf("\nEnter the number"); scanf("%d",&n); printf("\nThe Armstrong Numbers between 1 to %d range=",n); for(nt=1;nt<=n;nt++){ t=nt; sum=0; count=0; do{ t=t/10; count++; }while(t!=0); t=nt; do{ d=t%10; sum+=pow(d,count); t=t/10; }while(t!=0); if(sum==nt){ printf("\t%d",nt); } } }
run
|
edit
|
history
|
help
0
Mutex Safe
lab 12 v0.1
ptr[]
FILE_Access
G
finding 3 ones in a row
Lab 7 blackjack v0.9
B_141202_PALINDROMO
Test 3
Address.c