/* C Program to check whether an enterd number is a magic number or not*/
#include<stdio.h>
int main()
{
int n;
printf("Enter the number\n");
scanf("%d",&n);
if(n%9==0)
printf("The number entered is a magic number\n");
else
printf("The number entered is not a magic number\n");
return 0;
}
Give another method
ReplyDelete