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 / niveditha
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,n,count=0;
printf("enter the number of no's to be displayed");
scanf("%d",&n);
for(i=100,j=1;count<n;i--,j++)
{
printf("%d,",i);
count=count+2;
if(count<=n)
printf("%d,",j);
}
getch();
}
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
describe what is const pointer and why do we need it?
what are the various height of GSM mount and its base width ashim.port@gmail.com
can u tell me any JAM topics.........and answers also...plz send me.........e-mail: anitha839@gmail.com
What is CRC? the material will be used in electrical stampings.
Can you delink a payer from a bill to sold to ship to and then create a new payer on the existing bill to sold to ship to, this is where a pub or club changes licencees and we want to icolate the debt from the old owner but keep the sales history on the ship to/sold to
CSS corp interview process and placement papers
Can anyone send me iocl written test paper fro computer engineers
why is the scheduling decision needs to be taken when a process switches from running to waiting state.also,if this is because the next process is to be allocated to cpu then why not a scheduling decision taken when a process switches from ready to running state.
how to implement spiral model on railway reservation?.
what is the difference between physical address and logical address?
I am haning thousands emails in my send box (which i sended.) Now i want to send all these emails (Total in send box)to other by email. Can i send total emails at one time (Not sending each indivisually) by one comand; Please tell the steps..Thanks.
what is technical voice process and define it
Implement the dictionary operations INSERT, DELETE, and SEARCH using singly linked, circular lists. What are the running times of your procedures?
how can determine grounded motor when it alarm at 440volt
How will I MOve Comp-1 variable into next variable without using Move statement?