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...


Can anyone help me with this please? Need to print the below
values.. Thanks

1
1 2
1 2 3
1 2 3 4

Answers were Sorted based on User's Feedback



Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 ..

Answer / 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

Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 ..

Answer / mohit (firozabad, a.d.college)

#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 ?    4 Yes 0 No

Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 ..

Answer / carol

#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 ?    1 Yes 1 No

Post New Answer

More C Interview Questions

which operator having highest precedence? a.)+ b.)++ c.)= d.)%

4 Answers  


what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 Answers  


What is Generic pointer? What is the purpose of Generic pointer? Where it is used?

3 Answers  


What is difference between union and structure in c?

0 Answers  


what are the difference between ANSI C and Let Us c and Turbo C

4 Answers   LG Soft,


What are the Advantages of using macro

0 Answers  


write a progrmm in c language take user interface generate table using for loop?

0 Answers  


there is two conditions , 1. while using for loop for printing 1 to 50 no's simulteneous 2. while using printf functios for printing 1 to 50 no's simulteneous with or without using variables who will take more time for compiling and execution? explain in details with reason?

1 Answers  


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

0 Answers  


Explain what are binary trees?

0 Answers  


What is else if ladder?

0 Answers  


Write a program that receives as input a number omaadel-n-print, four digits.

0 Answers  


Categories