write a program whose output will be-
1
12
123
1234
Answer Posted / chaitali shinde
mian()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("1");
1++;
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 8 Yes | 16 No |
Post New Answer View All Answers
What is the difference between char array and char pointer?
What is the difference between near, far and huge pointers?
Why do we write return 0 in c?
What is meant by realloc()?
What is bin sh c?
What is the difference between array and structure in c?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What the advantages of using Unions?
Is Exception handling possible in c language?
what is the basis for selection of arrays or pointers as data structure in a program
What is an expression?
What is openmp in c?
For what purpose null pointer used?
How can I make sure that my program is the only one accessing a file?
What is indirection? How many levels of pointers can you have?