Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
level9
//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 //Automorphic Number /*An automorphic number is number whose square ends in the same digits as the number itself For example:5*5=25*/ #include<stdio.h> int main(){ int n,num,r,t,eq; long int sq; printf("Enter a number:"); scanf("%d",&n); num = n; sq = n*n; t=10; printf("Square of %d is %ld",n,sq); while(n<0){ r = sq%t; if(num == r){ eq=1; break; } n = n/10; t = t*10; } if(eq == 1){ printf("%d is an automorphic number",num); }else{ printf("%d is NOT an automorphic number",num); } return 0 ; }
run
|
edit
|
history
|
help
0
Arrays Grtade and Toppers
Programação em C, testes
base
print_odd_pointer.c
PuntosTriangulo
Lab 7 blackjack v1.0
UserDefinedDataType_pointer1
Prime no in given array
Vowel Assignment
ㅇㅇㅇ