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..

Answers were Sorted based on User's Feedback



100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos...

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

100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos...

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

100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos...

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

100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos...

Answer / suren

#include<stdio.h>
void main()
{
int i,j,n,count;
printf("Enter the number of numbers to be printed\n");
scanf("%d",&n);
for(i=100,j=1,count=0;count<n;i--,j++,count++)
{
printf(" %d ",i);
if(++count>=n)
return;
printf(" %d ",j);
}
}

Is This Answer Correct ?    4 Yes 2 No

100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos...

Answer / gyanaranjan patra

#include<stdio.h>
void main()
{
static int a=100,i,b=1;
for (i=1;i<=100;i++)
{
printf("%d %d ",a,b);
a=a-1;
b=b+1;

}
}
// this is the simpler one try it;;;;.. ...

Is This Answer Correct ?    4 Yes 2 No

100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos...

Answer / manohar bharti

#include<stdioh>
#include<conio.h>
void main()
{
int i,j,k,r;
printf("Enter the no. of terms you want");
scanf("%d",&r);
for(i=100,j=1,k=0;k<r;i--,j++,k++)
{
printf("%d",i);
k++;
printf(",");
if(k<r)
{
printf("%d",j);
printf(",");
}
else
return;
}
getch();
}

Is This Answer Correct ?    0 Yes 0 No

100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos...

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

More Engineering AllOther Interview Questions

as a fresher what is the format for resume and suggest me some career objectives too........

0 Answers  


What is the angle of phase sequence.

1 Answers  


how to create session in visual web jsf page as we create in jsp and how to maintain that jsf session in another jsp page? <JSF=java server faces> <JSP=java server pages>

1 Answers  


write a program for reverse a given string?

0 Answers   Infosys,


Which of the following highest Standard deviation? a).5,0,5,0,5,0 b) 5,5,5,5,5,5 c) 5,5,5,5,0,5 d) -5, 5, -5, 5,-5, 5

2 Answers   TCS,


who is the judge in case of the auditor has raised an NCR against an auditee? who should decide weather this NCR is acceptable and the auditee has to accept?

0 Answers   AES,


A short CI column of hollow circular section has projecting bracket carrying a load of 10 tonnes. The load line is off the column by 20cm. The external diameter of the column is 350mm and thickness of metal is 25 mm. Find the maximum stress intensity in the section.

0 Answers   IIIT,


the interviewer ask me If i accept to in lower position than the one i was tested for

2 Answers  


Write a program to count the no. of occurrence of word in given string Ex- Ram is good boy. Ram is doing good job. Ram – 2 is – 2 good – 2 boy – 1 doing –1 job – 1

0 Answers   Persistent,


Tl me folder name that has been not changed

1 Answers  


What kind of question can be asked at the time of Interview for State Bank Of India Clerical Interview

0 Answers  


what is the differance between a technology and an engineering ?

0 Answers   RoboSoft,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4456)
  • Electrical Engineering Interview Questions Electrical Engineering (16639)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)