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
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
How many main () function we can have in a project?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What are derived data types in c?
What is the difference between array and linked list in c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Explain how can you tell whether two strings are the same?
What is the value of uninitialized variable in c?
What will be your course of action for a push operation?
In C programming, what command or code can be used to determine if a number of odd or even?
what is the function of pragma directive in c?
What is hashing in c language?
What is a built-in function in C?
Are pointers really faster than arrays?
Write a program to check whether a number is prime or not using c?