Can anyone help me with this please? Need to print the below
values.. Thanks
1
1 2
1 2 3
1 2 3 4
Answer Posted / mohit (firozabad, a.d.college)
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
printf("%d",j);
}
printf("\n");
getch();
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between the local variable and global variable in c?
What is the difference between far and near in c?
How can I change their mode to binary?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
What are the rules for identifiers in c?
What is function and its example?
Explain how can I pad a string to a known length?
What oops means?
what are bit fields in c?
What is declaration and definition in c?
What is struct node in c?
What is #include cctype?
What is the difference between call by value and call by reference in c?
What are the restrictions of a modulus operator?
What is sorting in c plus plus?