AllC Programing LanguageUncategorizedWordpress Tutorials

#include<stdio.h> #include<conio.h> int main() { long int number, digitCount=0, numberCopy; clrscr(); printf("Enter Number: "); scanf("%ld", &number); numberCopy = number; while(number!=0) { digitCount++; number = number/10; } printf("%ld has %ld digits.", numberCopy, digitCount); getch(); return(0); } Output Run 1: ---------- Enter number: 67430 ↲ 67430 has 5 digits. Run 1: ---------- Enter number: 123 ↲ 123...

#include<stdio.h> #include<conio.h> int main() { long int number, square, flag=1; clrscr(); printf("Enter integer number:\n"); scanf("%ld", &number); square = number * number; while(number!=0) { if(square%10 != number%10) { flag=0; break; } number = number/10; square = square/10; } if(flag==1) { printf("AUTOMORPHIC"); } else { printf("NOT AUTOMORPHIC"); } getch(); return 0; } Output Run 1: ----------------- Enter...

https://atozonlinesolutions.com/wp-content/uploads/2017/03/logo_white.png
https://atozonlinesolutions.com/wp-content/uploads/2017/03/logo_white.png
About
Products
Subscribe

If you wish to receive our latest news in your email box, just subscribe to our newsletter. We won’t spam you, we promise!

    Applauz

    As the pioneer of the lean startup movement, APPLAUZ has dedicated it’s time to sharing effective business strategies that help new businesses and enterpreneurs put their money to work in the right way.

    Subscribe

    If you wish to receive our latest news in your email box, just subscribe to our newsletter. We won’t spam you, we promise!

      Applauz

      As the pioneer of the lean startup movement, APPLAUZ has dedicated it’s time to sharing effective business strategies that help new businesses and enterpreneurs put their money to work in the right way.

      Copyright by BOLD THEMES. All rights reserved.