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

100,1,99,2,98,3...... write a C pgm to generate this series
with user input for the number of nos. to b displayed..

Answer Posted / gyanaranjan patra

#include<stdio.h>
void main()
{
static int a=100,i,b=1;
for (i=1;i<=100;i++)
{
printf("%d %d ",a,b);
a=a-1;
b=b+1;

}
}
// this is the simpler one try it;;;;.. ...

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is there eligible for computer science engg students to write exams and how much percentage we want to attempt exam based on degree

1888


what we have to say about hobbies,strong points,weak points

2233


What is Symbian.?

2014


which type of casting enforces type safety

3701


how can i install windows-xp operating system in single time to 50 computersconnected in a LAN.

2320


Write a Java program that takes an integer from the user and extracts and displays each digit of the integer in English. So, if the user types in 932, the program will display nine three two. [Use SimpleInput class]

2218


How can I boldly face the interview? Request:I am eagerly waiting for your replay.

3029


what should i say in the interview if interviewer asks me "why did you choose IT instead of your core group?"

2130


I have got one problem .I initially have got windows vista in my computer but now I installed linux UBUNTU operating system into my computer .For this i first format D: drive and got installed finely there and restart , when it boots there there were two options vista and ubuntu .But the problem is that when i choose vista it opens but screen seems to be dark only mouse pointer sees in the screen and no more windows appeared . But when i choose ubuntu it opens and asks for username and password .But i don't know these things. But linux is freeopen software , why it asks userename and password ? Now i am unable to use my computer ,i installed lunux without partioning the drive. Plz give me the solution The computer configuration of my computer is 80 GB harddisk, 1 GB RAM.3GHz speed.

1902


What are the frequently asked technical engineer ques?

1888


IS THE SAMPLE POINT OF LPG SPHERE TANK PEFOR OR AFTER BUMP?

2106


What is the procedure for taking leave while detecting Epf and Esi?

2210


can oracle driver be directly connected with odbc driver??

1709


I have Job A and Job B in jcl. I want to trigger Job B from Job A. Please advise.

1997


what is your weaknesses

2039