write a program whose output will be-
1
12
123
1234
Answer Posted / devi
#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 ? | 51 Yes | 15 No |
Post New Answer View All Answers
What is int main () in c?
What is scanf () in c?
What is meant by preprocessor in c?
What is #include stdio h and #include conio h?
What is use of integral promotions in c?
What do you mean by a sequential access file?
What is a far pointer in c?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
hi, which software companys will take,if d candidate's % is jst 55%?
How can you increase the allowable number of simultaneously open files?
What are multibyte characters?
What are preprocessor directives in c?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream