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 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 ?    4 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can i learn ad. java without learned core java? java is best or .net is best for summer training?

1492


what is need of interface. what is the diff b/w interface and abstract class

1378


what books to prepare for atc please

1522


how to prepare for an written exam for any type of company?

1906


Write a test case plan for a typical banking application which involves functionalities like Balance enquiry, deposit, fund transfer etc. Make your assumptions and mention the same in your answer sheet.

1831






i need to know abt renault nissan company and the rounds and type of questions asked by today

2972


Hi friends..cud any help to get QC 9.2 trial..i tried with HP site but did'nt got it..please help me out

1667


Q1 Design a webpage for a hotel which displays all the information of the hotel such as rooms available, facilities, and packages along with rate list. Apply the different tags available to give it a good style.

1292


how to count number of 3's in 100

1740


Do you have any tips for using 3G phones?

1438


Why is using C language

1558


the controller valve fisher error: travel ??? not output input ok

1365


why dijkstra algorithm not used for negative weighted edges graph??

1621


I need to know the process to add 100 tapes in ATL. Ho to inicialize them to the system? How is all the process i need to follow> Thanks

1743


how bluetooth works?what is principle behind in it?

5690