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
What is the correct declaration of main?
What is a nested loop?
What is dynamic dispatch in c++?
Is c easy to learn?
What is the use of #define preprocessor in c?
What are preprocessor directives in c?
Why can't I perform arithmetic on a void* pointer?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
how do you execute a c program in unix.
What are c preprocessors?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
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
What functions are used for dynamic memory allocation in c language?
How can I get random integers in a certain range?
What are the characteristics of arrays in c?