print 1-50 with two loop & two print Statement

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the rules for variable declaration?

679


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

627


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

1601


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

686


Explain output of printf("Hello World"-'A'+'B'); ?

978






what are non standard function in c

1438


What do header files do?

604


What are the functions to open and close the file in c language?

596


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2335


What is New modifiers?

672


What is the advantage of a random access file?

640


What are types of structure?

605


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

1632


ATM machine and railway reservation class/object diagram

4806


what are the 10 different models of writing an addition program in C language?

1442