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 for odd numbers?

Answer Posted / nilaksh

#include<stdio.h>
#include<conio.h>
void main()
{
int i, n;
clrscr();
printf("\nHow many odd numbers?");
scanf("%d",&n);
for(i=1;i<=n*2;i++)
printf("\n %d",i);
getch();
}

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of static variable in c?

1087


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1139


Explain what is the advantage of a random access file?

1115


How many header files are in c?

1027


What are file streams?

1006


Write a program of advanced Fibonacci series.

1142


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2292


How does struct work in c?

1078


What is double pointer in c?

1035


What is a good data structure to use for storing lines of text?

1080


Which of these functions is safer to use : fgets(), gets()? Why?

1094


What is f'n in math?

1062


Differentiate between Macro and ordinary definition.

1375


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1117


What are the advantages of c language?

1088