print 1-50 with two loop & two print Statement

Answers were Sorted based on User's Feedback



print 1-50 with two loop & two print Statement..

Answer / ksambhaji999

For(i=1;i<50;i=i
+2)
{ printf
("%d",i);
for(j=2;j<51;j++)
{ printf
("%d",j);}

Is This Answer Correct ?    3 Yes 0 No

print 1-50 with two loop & two print Statement..

Answer / ravindra kushwaha

for(int i=1;i<=25;i++)
{
printf("%d",i)
}
for(int j=25;j<=50;j++)
{
printf("%d",j)
}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

Why c language is called c?

0 Answers  


FIND THE OUTPUT IF THE INPUT IS 5 5.75 void main() { int i=1; float f=2.25; scanf("%d%f",&i,&f); printf("%d %f",,i,f); } ANSWER IS 5 AND 2.25 WHY?

4 Answers   Wipro,


what is Structural oriented language? give some example of this language.....?

1 Answers  


Can static variables be declared in a header file?

0 Answers  


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

0 Answers  


What is spark map function?

0 Answers  


wat is the difference between array and pointer?

4 Answers   Wipro,


Meaning of () in c

1 Answers  


What is an lvalue?

0 Answers  


How do I initialize a pointer to a function?

2 Answers  


While(1) { } when this loop get terminate is it a infinite loop?

5 Answers  


How can I get random integers in a certain range?

0 Answers  


Categories