write a Program to dispaly upto 100 prime numbers(without
using Arrays,Pointer)
Answer Posted / karthik
void main()
{
int i,j,m;
for(i=1;i<=100;i++
{
m=0
for(j=1;j<i;j++)
{
if(i%j==0)
m++;
}
if(m==0)
printf("%d",i);
getch();
}
Is This Answer Correct ? | 54 Yes | 87 No |
Post New Answer View All Answers
What are the various types of control structures in programming?
What is a nested formula?
What is use of null pointer in c?
What does 1f stand for?
What are the applications of c language?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What are structures and unions? State differencves between them.
List the different types of c tokens?
Write a program to reverse a given number in c language?
What is a function simple definition?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Multiply an Integer Number by 2 Without Using Multiplication Operator
Is array name a pointer?
a c code by using memory allocation for add ,multiply of sprase matrixes
In a header file whether functions are declared or defined?