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 is 'bus error'?
Explain the bubble sort algorithm.
What are the usage of pointer in c?
What is difference between structure and union?
By using C language input a date into it and if it is right?
In C language what is a 'dangling pointer'?
The file stdio.h, what does it contain?
Define macros.
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
What is the difference between text and binary modes?
How can I find the modification date of a file?
What is calloc malloc realloc in c?
How do shell structures work?
What is a shell structure examples?
Which function in C can be used to append a string to another string?