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
write a progremme using function 0f prime no.?
how to delete four out of five duplicate records in a table using sql
how to make resume and what should I include in it?
how many protocols are available and what are they?
what is the differance between a technology and an engineering ?
Hi dost here Alok Kumar please send question pattern for NIC at godinall.kumar1@gmail.com or alok.iitb07@gmail.com
How does C pass variables to a function ?
I am an Electrical engineering ( electrical back round ) ,can i get hvac Water system design details to easy understand ,i am working past 15years in Pharmaceuticals company with Engineering depart.
where is the first vidhyalaya of physically handicaped
Can u send me a sample Final year CSE student 'RESUME' for campus placement to following mail id: aspnetworks@gmail.com
What is the instruction to load the register B?
write an algorithm in O(n) time for finding the kth smaalest element form an array of n elements , where n and k are entered by user
Explain different parts of an instruction. What does the addressing mode bit specifies?
I am from B.Tech back ground, i had Applied to do masters in Engineering management, and university gave Admission and sent I-20, if the interviewer asks why are doing masters in this field, even you are from B.Tech (information technology)? Can any one give me relevant answer, if interviewer asks that question
Write a nonrecursive routine to reverse a singly linked list in O(N) time.