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
Which of these functions is safer to use : fgets(), gets()? Why?
Is stack a keyword in c?
What is meant by realloc()?
What are formal parameters?
Why n++ execute faster than n+1 ?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is build process in c?
can we change the default calling convention in c if yes than how.........?
How do we make a global variable accessible across files? Explain the extern keyword?
Which is the memory area not included in C program? give the reason
explain what is fifo?
Explain what is the stack?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor