progrem to generate the following series
1
12
123
1234
12345

Answer Posted / srsabariselvan

int main()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d\t",j);
}
printf("\n");
}
return 0;
}

Is This Answer Correct ?    115 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the correct declaration of main?

675


What is a nested loop?

643


What is dynamic dispatch in c++?

554


Is c easy to learn?

552


What is the use of #define preprocessor in c?

613






What are preprocessor directives in c?

630


Why can't I perform arithmetic on a void* pointer?

635


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

904


how do you execute a c program in unix.

634


What are c preprocessors?

672


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

609


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

632


What functions are used for dynamic memory allocation in c language?

597


How can I get random integers in a certain range?

609


What are the characteristics of arrays in c?

609