1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
how to print this using while statement??
Answer / 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 |
write a c program which accepts input as Anu.B.Kapoor and gives output as:Kapoor.A.B plz send me the ans
what we have to say about hobbies,strong points,weak points
why java take 2 byte for charecter???
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
What is the fallacy in the following program segment ? int *f1() { int a=5; return &a; } f() int *b=f1() int c=*b; }
T is a tree and V is a vertex of T of maximum degree in T, say the degree of V in n. Prove that T has atleast n vertices of degree 1.
WHAT IS DIFFERENT BETWEEN YOU AND OTHER APPLICANT TO GIVE YOU THE JOB
what is dns?
what are the various login options used in loadrunner tool to make a application performance testing
If Neena says "Anita's father Raman is the only son of my father-in-law Mahipal",then how is bindu ,who is the sister of Anita,related to Mahipal
What is the time complexity T(n) of the nested loops below? For simplicity, you may assume that n is a power of 2. That is, n = 2k for some positive integer k. : i = n; while (i >= 1){ j = i; while (j <= n) { <body of the inner while loop > // Needs (1). j = 2 * j; } i = i/2; } :
wat r aptitude ques askd in TCS??