progrem to generate the following series
1
12
123
1234
12345
Answers were Sorted based on User's Feedback
int main()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d\t",j);
}
printf("\n");
}
return 0;
}
| Is This Answer Correct ? | 115 Yes | 27 No |
Answer / shakil ahmed
#include<stdio.h>
#include<conio.h>
main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
printf("%d",j);
}
printf("\n");
}
}
| Is This Answer Correct ? | 65 Yes | 16 No |
Answer / mustafiz
#include<stdio.h>
int main()
{
int row,i;
printf("Enter row number:\n");
scanf("%d",&row);
int sum=0;
for(i=1;i<=row;i++)
{
sum = sum *10 +i;
printf("%d\n",sum);
}
return 0;
}
| Is This Answer Correct ? | 25 Yes | 12 No |
Answer / f.hnayan
#include<stdio.h>
#include<conio.h>
main()
{
int a,b;
for(a=0;a<=4;a++)
{
for(b=1;b<=(a+1);b++)
{
printf("%d\t",b);
}
printf("\n");
}
return 0;
}
| Is This Answer Correct ? | 11 Yes | 5 No |
Answer / banavathvishnu
main()
{
int a;
int temp =0;
for(i=1;i<=5;i++)
{
temp = temp *10 +i;
printf("%d",temp);
}
| Is This Answer Correct ? | 23 Yes | 19 No |
Answer / sachin
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,row;
clrscr();
printf("
How many rows
");
scanf("%d",&row);
for(i=1;i<=row;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("
");
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 2 No |
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
When is the “void” keyword used in a function?
Write a program to use switch statement.
0 Answers Agilent, Integreon, ZS Associates,
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
How many bytes are occupied by near, far and huge pointers (dos)?
I came across some code that puts a (void) cast before each call to printf. Why?
Tell me when is a void pointer used?
What is the purpose of macro in C language?
How to establish connection with oracle database software from c language?
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300
What is conio h in c?
What's a good way to check for "close enough" floating-point equality?