#include< stdio.h> #include< conio.h> int main() { int n,sum=0,rem,temp; clrscr(); printf("Enter any two digit number:"); scanf("%d",&n); for(temp=n;temp>0;temp=temp/10) { rem=temp%10; sum=sum+rem; } if(n==(sum*3)) printf("\nIts a Peculiar two digit number"); else printf("\nNot a Peculiar two digit number"); getch(); return 0; }
INDEX Chapter 1 Memory map Chapter 2 Data type Chapter 3 Variables in c Chapter 4 Operators and expression Chapter 5 Control structure if else and switch case