program for following output using for loop?
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
Answer Posted / letskools
I think th correct program is this for the above output
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=0;i<=5;i++)
{
for(j=i;j<=5;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Define the scope of static variables.
what are the facialities provided by you after the selection of the student.
Why does notstrcat(string, "!");Work?
Is a house a mass structure?
Is it acceptable to declare/define a variable in a c header?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Explain the use of keyword 'register' with respect to variables.
How do you determine a file’s attributes?
Why is extern used in c?
What is c programming structure?
Explain what math functions are available for integers? For floating point?
Can static variables be declared in a header file?
p*=(++q)++*--p when p=q=1 while(q<=6)
What are terms in math?
writ a program to compare using strcmp VIVA and viva with its output.