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 / vishwaranjan kumar singh

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

Is This Answer Correct ?    14 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which topics are come from quizs

1289


What are the fundamental differences between Engineering and Physics?

683


What type of questions are asked in interview?

1356


WHAT ARE THE ADVANTAGE OF SYSTEM ENGINEER

1557


an upper layer message is split into 10 frames each of which has an 80 percent chance of arriving undamaged.if no error control is done by the data link protocol,how many times must the message be sent on the average to get the entire thing through?

2629






is built-in data-type are abstract data-types in java

1543


I am some what lagging in talking English but i love to do job as an software engineer what will i do to improve my communication skills? please give me answer..........

2659


hi, please send me "state bank of india", last 5 years question paper with answers to my mail id.

1712


Prove that in a self-complementing code the sum of the weights must be 9?

28638


How we calculate steam turbine governor linkage assembly?

1614


what is the difference between core java and advance java

1564


what is the formula/ ratio for hollow block? considering to a 40 kgs of portland cement.

1471


Can one be shocked holding a wire carrying a very large current with a low voltage source?

1641


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

1872


Please send me Sample papers National Informatics Centre (NIC) Programmer. I am giving this paper first time..so if any one have previous question papers send to manoj200.yadav@gmail.com. thnx in advance

1530