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
Always declare destructors to be virtual"?????? why this is so needed?????
Which one is more efficient in terms of required memory space call-by-value or call-by-referance?
WHY SHOULD I HIRE YOU
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; }
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.??????
Anyone have thesis paper about "Electrical Load Forecasting" . Or the web addresses where people usually upload their thesis paper except IEEE.
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
What is histogram? why and how it is used?
why not overloading -,=,_,\ operator
how to conrtruct gear make him rotate on its axis
what kind of wood is in high demand in india?
which are the books available in, India for STONE COLUMNS/GRANULAR PILES?
how to find out the name of the users who are currently working starting with the same characters in unix os
Relative Humidity (RH) is mostly used word in Datacenters, What are the defendents of RH
how bluetooth works?what is principle behind in it?