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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is call by reference in functions?

1320


difference between native and cross compilers

2079


What is the code in while loop that returns the output of given code?

1895


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3840


What is the difference between single charater constant and string constant?

1030


What is a function simple definition?

1031


What is structure in c definition?

984


What is typeof in c?

955


how many errors in c explain deply

2035


What is unary operator?

1051


Explain what is the most efficient way to store flag values?

1172


write a program to generate address labels using structures?

4519


What is FIFO?

1541


What is the difference between text files and binary files?

1282


What is a char in c?

930