Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the properties of union in c?

1054


What is 1f in c?

2651


What is the difference between variable declaration and variable definition in c?

1058


What are the 4 types of functions?

1052


How can a process change an environment variable in its caller?

1185


What is assignment operator?

1057


cavium networks written test pattern ..

4081


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2258


What is pointers in c?

1112


What is huge pointer in c?

1082


What is a global variable in c?

1003


What is pragma c?

1115


Can you return null in c?

1161


What is null pointer in c?

988


What does #pragma once mean?

1162