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
What are the properties of union in c?
What is 1f in c?
What is the difference between variable declaration and variable definition in c?
What are the 4 types of functions?
How can a process change an environment variable in its caller?
What is assignment operator?
cavium networks written test pattern ..
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is pointers in c?
What is huge pointer in c?
What is a global variable in c?
What is pragma c?
Can you return null in c?
What is null pointer in c?
What does #pragma once mean?