:: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
Categories >> Software >> Programming Languages >> C


Question write the program for prime numbers?
 Question Asked In Companies :: Accenture, Aptech, Infosys, TCS,     < I also faced this Question! >
 Question Submitted By :: aaaa
  Answer Posted By  

int main()
int c,i,n;
if (n%i==0)
else printf ("not a prime");

Is This Answer Correct ?    110 Yes 89 No

View All Answers
Please Help Members By Posting Answers For Below Questions
 Question Views   Select
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm 525
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure. 2290
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine? 479
what is event driven software and what is procedural driven software? 841
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles. 387
what is the difference between auto and static keywords 497
how to execute a program using if else condition and the output should enter number and the number is odd only... 535
how to find binary of number? 1003
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34 426
write a progrmm in c language take user interface generate table using for loop? 397
find out largest elemant of diagonalmatrix 463
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555 1044
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question 390
why return type of main is not necessary in linux 504
write a program to print data of 5 five students with structures? 491
E-Mail New Answers        Answer Selected Questions