write a program whose output will be-
1
12
123
1234
Answer Posted / riyadh ahmed
//Answer by Riyadh
#include<stdio.h>
int main ()
{
int i,j;
for (i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("
");
}
return 0;
}
Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What is the advantage of c?
What are the 4 types of organizational structures?
What is data structure in c and its types?
In which header file is the null macro defined?
If errno contains a nonzero number, is there an error?
What is use of pointer?
Find MAXIMUM of three distinct integers using a single C statement
What are the benefits of organizational structure?
What is the use of function in c?
Differentiate between a for loop and a while loop? What are it uses?
The statement, int(*x[]) () what does in indicate?
What is the difference between exit() and _exit() function in c?
What is the symbol indicated the c-preprocessor?
What is pragma in c?