how can write all 1to 100 prime numbers using for loop,if and
break ?
Answer Posted / sandeep
#include<stdio.h>
main()
{
int a=2;
work:
printf("%d",a);
a=a+2;
check:
if(a<=100)
goto work;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain how can you restore a redirected standard stream?
What is the right type to use for boolean values in c?
What does a pointer variable always consist of?
What is main () in c language?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is a null string in c?
What is wrong with this declaration?
What is a function in c?
What is the difference between arrays and pointers?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is conio h in c?
What is modeling?
What is the importance of c in your views?
Explain the difference between #include "..." And #include <...> In c?
Differentiate between full, complete & perfect binary trees.