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

any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1123


How many main () function we can have in a project?

1111


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1176


What are derived data types in c?

1087


What is the difference between array and linked list in c?

1153


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2864


Explain how can you tell whether two strings are the same?

1016


What is the value of uninitialized variable in c?

1033


What will be your course of action for a push operation?

1110


In C programming, what command or code can be used to determine if a number of odd or even?

1054


what is the function of pragma directive in c?

1120


What is hashing in c language?

1311


What is a built-in function in C?

1598


Are pointers really faster than arrays?

1025


Write a program to check whether a number is prime or not using c?

1058