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
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is sizeof return in c?
Explain how can a program be made to print the name of a source file where an error occurs?
What is array of pointers to string?
Write a program to show the change in position of a cursor using c
What are the types of variables in c?
what is ur strangth & weekness
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Explain the properties of union.
How many loops are there in c?
What is the difference between exit() and _exit() function?
What is a program?
What is the difference between functions abs() and fabs()?
What are the different types of objects used in c?
What are conditional operators in C?