1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
how to print this using while statement??
Answer Posted / divyesh
int i=1,j,k;
while(i<6)
{
k=((10-(2*i)))/2;
while(k>0)
{
printf(" ");
k--;
}
j=1;
while(j<=i)
{
printf("%d ",j);
j++;
}
printf("\n");
i++;
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to select the total numbers of fire extinguisher installed in a room ?
How To Servers For Malitnationl Bank?
how do we calculate physical address if logical address is given in the question?
Modal vs Modaless in VB??
what is the difference between error,exception,bug,defect,fault..?
What is candidate key ? What is Alter net key ? & What is foreign key ?
tell me the e book for data structure (basic)
write a c++ program to interchange two-integer number without using the third variable. use concept of constructor overloading.
how is the config take place and from reciever side how will process the data into internal table
please send me latest Aptitude Test paper
anyone send me aptitude and technical placement paper of Hewitt
who is your role modal give in few sentances
1)what to do in emergency situation of having total blackout (on a ship) 2)what to do in emergency situation of flooding in the engine room 3)under what conditions would engine room bilges be pumped overboard? 4)why is high pressure required for the injection of fuel into the cylinder of diesel engine. 5)why is doubled walled pipes employed for high pressure fuel lines? 6)reasons for overheating of main engine 7)how to detect choked fuel valve,leaky piston rings and their remedies during operation in diesel engine? 8)effects of insufficient or excessive cylinder lubrication? 9)causes of a diesel engine piston overheating.
how the aeroplane protected from the lightening?
How does Earthquake-proofing work?