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...

Write a program to print prime nums from 1-20 using c
programing?

Answer Posted / musa

#include <stdio.h>
main(){
printf("2 5 7 11 13 17 19");
}

Is This Answer Correct ?    10 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

1173


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

1110


What does static variable mean in c?

1116


What is the correct code to have following output in c using nested for loop?

1096


What is the purpose of the statement: strcat (S2, S1)?

1176


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1113


Difference between goto, long jmp() and setjmp()?

1187


What is dynamic variable in c?

1042


What is static memory allocation?

1187


What are register variables? What are the advantage of using register variables?

1191


What is the difference between arrays and pointers?

1141


Can you please explain the difference between exit() and _exit() function?

1042


What are run-time errors?

1128


Here is a neat trick for checking whether two strings are equal

1029


Does c have enums?

1114