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

Explain how are portions of a program disabled in demo versions?

0 Answers  


O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N

9 Answers   ADP,


What are the average number of comparisons required to sort 3 elements?

2 Answers   DRDO,


write a program to remove duplicate from an ordered char array? in c

2 Answers  


write a program to print infinte number

4 Answers  






What is that continue statement??

4 Answers  


Write a program of prime number using recursion.

0 Answers   Aspiring Minds,


What is %d used for?

0 Answers  


What is clrscr ()?

0 Answers  


1. Can we use the for loop this way? for(;i>5;) 2. What is the use of pointers? 3. what is array of pointer? 4. What is the difference between file and database? 5. Define data structure?

1 Answers  


output for following code??? main() { int x=2,y,z; x*=3+2; printf("1.%d\n",x); x*=y=z=4; printf("2.%d %d %d\n",x,y,z); x=y==z; printf("3.%d\n",x); x==(y=z); printf("%d",x); }

2 Answers   Elysium,


How do I initialize a pointer to a function?

2 Answers  


Categories