#include<stdio.h>
#include<conio.h>
void main()
{
int n,a=2;
clrscr();
printf("\n enter n");
scanf("%d",&n);
if(i<=a-1)
{
if(a%i==0)
{
printf("\n the given number is not a Prime number");
break;
}
i++;
if(a==i)
{
printf("\n the given number is a prime number");
}
getch();
output:
enter the value of n:2
the given number is prime number
45
If it is even
sdfsdfsfsggbcvbg
The equilibrium price is the unit cost, which is the same as the total cost divided by the number of units produced (output).
kjhk
8086 assembly language program to check wether given number is perfect or not
write a program in C to check whether a given number is apalindrome or not
Inversing of a given Number. suppose we gave input 123456 then the output of the program will be 654321./*mycfiles.wordpress.comC program to print inverse of a given number*/#include#includevoid main(){long int n,rn=0,d=0;clrscr();printf("Enter the number\n\n");scanf("%ld",&n);while(n>0){d=n%10;rn=rn*10+d;n=n/10;}printf("%ld",rn);getch();}
45
The program is here guys.......... //Finding whether the given number is perfect or not //Starts here #include<stdio.h> void main() { int i=1,temp=0,number; scanf("%d",&number); while(i<=number/2){ if(number%i==0) temp+=i; i++; } if(temp==number) printf("Its a perfect number"); else printf("Its not a perfect number"); } //ends here
If it is even
sdfsdfsfsggbcvbg
The equilibrium price is the unit cost, which is the same as the total cost divided by the number of units produced (output).
Yes it is. Given any number you can decide whether or not it belongs to the set.
syntax error
kjhk
No, thanks.