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
What is memcpy() function?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Explain how do you convert strings to numbers in c?
Write a program of prime number using recursion.
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
What are the 5 organizational structures?
What standard functions are available to manipulate strings?
Where static variables are stored in c?
Explain what is the difference between null and nul?
What is the significance of scope resolution operator?
What is %g in c?
What is equivalent to ++i+++j?
What is anagram in c?
Explain how can you avoid including a header more than once?