#include<stdio.h>
void main()
{
int n,t,sum=0;
float fact=1;
clrscr();
printf("enter the number");
scanf(%d",&n);
t=n;
while(t)
{
for(i=0;i<=t%10;i++)
{
fact=fact*i;
}
sum=sum+fact;
fact=1;
t=t/10;
}
if(n==sum)
{
printf("strong number");
}
else
{
printf("not strong number");
}
getch();
}
The greatest number is infinity.
printf(\n "ENTER THE NUMBER\t"); scanf{"%d",&a); while(a!=0); { r=a%2; if(r==0) printf("\n\n THE NUMBER IS EVEN \t"); else printf("\n\n THE NUMBER IS ODD \t"); printf ("\n ENTER THE NUMBER \t"); scanf("%d",&a); } getch(); }
Yes
echo "Program to check even or odd number"echo "Enter a number"read na=`expr $n % 2`if [ $a -eq 0 ] ; then #Semicolon is most important for Executing ifelse statementsecho "It is an even number"elseecho "It is an odd number"fi
I assume you mean is an if the number is an integer multiple of 3i am unfamiliar with C but the theory would be,find if a is integer multiple of 3b=a/3b==round(b).if 1 "yes"else "no"this is an inefficiency way but will get the job done
The greatest number is infinity.
/* Program to Find whether number is Prime or Not. */ class PrimeNo{ public static void main(String args[]){ int num = Integer.parseInt(br.readLine()); int flag=0; for(int i=2;i
You can find your trusted traveler number on the back of your Trusted Traveler Program card or in your online account on the program's website.
printf(\n "ENTER THE NUMBER\t"); scanf{"%d",&a); while(a!=0); { r=a%2; if(r==0) printf("\n\n THE NUMBER IS EVEN \t"); else printf("\n\n THE NUMBER IS ODD \t"); printf ("\n ENTER THE NUMBER \t"); scanf("%d",&a); } getch(); }
Yes
sir , what is perfect no?
whereis [name of program]
sdfsdfsfsggbcvbg
square and cube caculator
the odds against evens
echo "Program to check even or odd number"echo "Enter a number"read na=`expr $n % 2`if [ $a -eq 0 ] ; then #Semicolon is most important for Executing ifelse statementsecho "It is an even number"elseecho "It is an odd number"fi
No, thanks.