Question
Write a program to check prime number in C Programming

Answers

#include
#include
void main()
{
int n,i,m=0,flag=0;
clrscr();
printf("Enter the number to check prime:");
scanf("%d",&n);
m=n/2;
for(i=2;i0)
{
r=n%10;
sum=(sum*10)+r;
n=n/10;
}
if(temp==sum)
printf("palindrome number ");
else
printf("not palindrome");
getch();
}   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q What does sql stand for, and what is it used for?
  • Q Which state is the largest producer of black pepper in India?
  • Q Mention the family, order of False cat shark Fish?
  • Q 17) If you run the code below, what gets printed out? String s=new String("Bicycle"); int iBegin=1; char iEnd=3; System.out.println(s.substring(iBegin,iEnd)); a.Bic b.ic c. icy d. error: no method matching substring(int,char)
  • Q Which method is used to save or update the state of the given instance from the underlying database
  • Q A mooli is which type of vegetable: Carrot, Radish; Parsnip; or Cauliflower?
  • Q In general, how do you see automation fitting into the overall process of testing?
  • Q Who wrote the Kalpasutra ?
  • Q The only instance when the President of India exercised his power of veto?
  • Q Mention the family, order of Atlantic Sharpnose Shark Fish?
  • Q Describe Activities.