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 / hari
#include<stdio.h>
main()
{
int i,j= 0;
for(j= 1;j<=5 ;j++)
{
for(i=1;i<=j;i++)
printf("%d ",i);
printf("\n");
}
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Explain do array subscripts always start with zero?
How can I access an I o board directly?
What is the symbol indicated the c-preprocessor?
Describe explain how arrays can be passed to a user defined function
How can I read and write comma-delimited text?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is a volatile keyword in c?
How many types of functions are there in c?
Is that possible to add pointers to each other?
What is echo in c programming?
What is the difference between array and pointer in c?
Can the sizeof operator be used to tell the size of an array passed to a function?
what is the height of tree if leaf node is at level 3. please explain
write a c program to find the sum of five entered numbers using an array named number
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.