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

Is it acceptable to declare/define a variable in a c header?

0 Answers  


Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.

1 Answers  


c program to manipulate x=1+3+5+...+n using recursion

2 Answers   Wipro,


How can I invoke another program from within a C program?

8 Answers  


What are the disadvantages of external storage class?

0 Answers  


What is the difference between abs() and fabs() functions?

0 Answers  


What should be keep precautions while using the recursion method?

1 Answers  


who is the founder of c

19 Answers   College School Exams Tests, HP,


What is pragma in c?

0 Answers  


I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.

1 Answers  


What is a class c rental property?

0 Answers  


Explain how can I make sure that my program is the only one accessing a file?

0 Answers  


Categories