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
what is the effect of low frequency(say 48Hz) on TUrbo- Generator set when running for a prolonged period?
please kindly send me the details about courses that are offered in nda
what are the areas of improvement required in yourself to achieve your career goals? Describe what you are doing/plan to do to address the areas of improvement
WHERE CAN I GET SQL SERVER NOTES SOFT COPY?
what is difference between shell commands and shell scripting commands or both r same?
THERE iS ANY DEFAULT CONNECTION STRING FOR WINDOWS APPLICATION IN VB.NET2005 FROM WHICH AFTER CHANGING PROJECT DIRECTORY TO OTHER PLACE AND WE DID NOT CHANGE DATABASE PATH INB SQL CONNECTION ?????
please explane me clusterd and non clusterd
hi i am avinash ,i am doing ma b-tech(cse) final year and i have been detained for 2years due to attendance and i will be finished ma b-tech in 6 years ,plz tell me weather i will be eligible for government jobs like bhel, drdo,or any other private companies
why multiple inheritence concept is not supported in c#?
Hello friend I am Manish from delhi I clear the written exam of NIC(national insurance company),If any one have any idea about inerview plz send me details my no:-9999026117,Email id:-bittu523@yahoo.com
What is meant by relay & co-ordination at substation engineering ?
What are the duties of QA/QC Coordinator
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?
can you please tell me your understanding in database,what is it
how to prepare for an written exam for any type of company?