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

To what value do nonglobal variables default? 1) auto 2) register 3) static

4 Answers  


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

0 Answers   Case, IBM,


main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?

7 Answers   AMCAT, HCL, Ramco, Zycus Infotech,


without using arithmatic operator solve which number is greater??????????

1 Answers   Accenture,


how to print the character with maximum occurence and print that number of occurence too in a string given ?

0 Answers   Microsoft,






What is the difference between fread buffer() and fwrite buffer()?

0 Answers  


Can i use Two or More Main Funtion in any C program.?

4 Answers  


What is pass by reference in c?

0 Answers  


Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June

0 Answers  


How pointers are declared?

0 Answers  


what is the use of fflush() function?

2 Answers  


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

0 Answers   Lovely Professional University,


Categories