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 / soumya

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=100,j=1;i>0;i-=1,j+=1)
{
printf("%d,%d,",i,j);
}
getch();
}

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Always declare destructors to be virtual"?????? why this is so needed?????

2145


Which one is more efficient in terms of required memory space call-by-value or call-by-referance?

1908


WHY SHOULD I HIRE YOU

2036


int main() { int d = 10; int m = 2; int y = 3603; int c = 0; int val; val = ( d + m + y + (y/4) + c) % 7; cout << val; return 0; }

1603


hey frnds..i have taken an emergency interview date of 21st july and my school is starting from 8th sept...i was continuously checking the date from 10 days but was not able to get a normal date...so can i get a rejection on this, that i have taken an emergency date.??????

1804


Anyone have thesis paper about "Electrical Load Forecasting" . Or the web addresses where people usually upload their thesis paper except IEEE.

1884


Draw a pipeline configuration to carryout the following operations on the arrays of data represented by A, B, C, D, E and F. (A i represents the i th element of the array). (Ai × Bi + Ci × Di ) (Ei × Fi ) Show the content of the pipline for i = 1 to 5

2667


What is histogram? why and how it is used?

1941


why not overloading -,=,_,\ operator

1968


how to conrtruct gear make him rotate on its axis

1909


what kind of wood is in high demand in india?

2497


which are the books available in, India for STONE COLUMNS/GRANULAR PILES?

1764


how to find out the name of the users who are currently working starting with the same characters in unix os

2058


Relative Humidity (RH) is mostly used word in Datacenters, What are the defendents of RH

1741


how bluetooth works?what is principle behind in it?

6755