progrem to generate the following series
1
12
123
1234
12345

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the local variable and global variable in c?

526


What do the functions atoi(), itoa() and gcvt() do?

722


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1426


Describe wild pointers in c?

636


Are the variables argc and argv are always local to main?

569






Can include files be nested? How many levels deep can include files be nested?

653


Do array subscripts always start with zero?

776


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

608


write a program to print largest number of each row of a 2D array

1866


write a program in c language to print your bio-data on the screen by using functions.

6241


Implement bit Array in C.

672


Difference between exit() and _exit() function?

653


What is equivalent to ++i+++j?

641


What is the difference between array_name and &array_name?

774


What is printf () in c?

576