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
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 size of enum in c?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
#include
What are the two forms of #include directive?
Explain how can I prevent another program from modifying part of a file that I am modifying?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
what value is returned to operating system after program execution?
How is pointer initialized in c?
What is extern storage class in c?
Write a program to print ASCII code for a given digit.
What is the difference between ++a and a++?
all c language question
What is the description for syntax errors?
What is const volatile variable in c?