Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


progrem to generate the following series
1
12
123
1234
12345

Answers were Sorted based on User's Feedback



progrem to generate the following series 1 12 123 1234 12345..

Answer / srsabariselvan

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

progrem to generate the following series 1 12 123 1234 12345..

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

progrem to generate the following series 1 12 123 1234 12345..

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

progrem to generate the following series 1 12 123 1234 12345..

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

progrem to generate the following series 1 12 123 1234 12345..

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

progrem to generate the following series 1 12 123 1234 12345..

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

Post New Answer

More C Interview Questions

a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

0 Answers  


When is the “void” keyword used in a function?

1 Answers  


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

1 Answers  


How many bytes are occupied by near, far and huge pointers (dos)?

0 Answers  


I came across some code that puts a (void) cast before each call to printf. Why?

0 Answers  


Tell me when is a void pointer used?

0 Answers  


What is the purpose of macro in C language?

0 Answers   Fidelity,


How to establish connection with oracle database software from c language?

0 Answers  


#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

4 Answers   Tieto,


What is conio h in c?

0 Answers  


What's a good way to check for "close enough" floating-point equality?

0 Answers   Celstream,


Categories