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
sample.c
T3.C
EXercice
bitmask
2-dimension array got area by malloc()
Program 1 - 2D array and memory pointers
B_141111_Divisores
A_141117_Euclides
purple ghost red orange blue skulls
Iterated sums