progrem to generate the following series
1
12
123
1234
12345

Answer Posted / shakil ahmed

#include<stdio.h>
#include<conio.h>
main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
printf("%d",j);
}
printf("\n");
}
}

Is This Answer Correct ?    65 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you please explain the difference between exit() and _exit() function?

606


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

676


Where in memory are my variables stored?

643


Explain how do you view the path?

672


What are qualifiers and modifiers c?

561






Disadvantages of C language.

668


How is a macro different from a function?

662


What are dangling pointers? How are dangling pointers different from memory leaks?

635


Write a program to generate random numbers in c?

673


Explain what are the different data types in c?

767


Why pointers are used?

639


What is line in c preprocessor?

623


Why c language?

656


Is array a primitive data type in c?

589


Explain what is the difference between a string and an array?

644