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 / 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 |
Post New Answer View All Answers
i am satish i want to preapare for group-1 exams so please help me?
hi... i just want to know that how could join the AAI with an B.E back ground??? please help me out.
What are the advantages and disadvantages of Automicity, Consistency,Isolation & Durability?
model question papers of GrayOrange company
XSL and XSLD difference
what are basic step involved in embedded system software development?
Explain what is meant by repetition of information and inability to represent information. Explain why each of these properties may indicate a bad relational database design.
Please if anybody have Vizag Steel Entrance exam papers or atleast Pattern of exam.Then please forward to my email- id: :srikanth.avanthi@gmail.com
Dear frds In my office we are using chiller . in that chiller inlet and outlet water diff. is 2.5 decgree always. if i intduce the cooling tower can i get good result in chiller Inlet water. reply plz.
Difference between software process model and software process.?
what is the effect of low frequency(say 48Hz) on TUrbo- Generator set when running for a prolonged period?
A rectangular sheet dimensions a x b is to be made into an open-topped box by cutting a square of side h from each corner and folding the 4 sides up. Find the value of h which allows the maximum volume of the box?
a book consists of chapter ,chapter consist of sections and sections consists of subsections.construct a tree and print the node.
hey,,,hi have taken an emergency date of 21st july...i was continuously checking for dates n i was not able to get a normal date n my school is starting from 8th of september...so plz tell me can i get a rejection based on this, that i have taken an emergency date?????
Please derive the formula for the area of a circle.