#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
Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11
The greatest number is infinity.
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.
/* 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
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.