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 call by reference in functions?
difference between native and cross compilers
What is the code in while loop that returns the output of given code?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What is the difference between single charater constant and string constant?
What is a function simple definition?
What is structure in c definition?
What is typeof in c?
how many errors in c explain deply
What is unary operator?
Explain what is the most efficient way to store flag values?
write a program to generate address labels using structures?
What is FIFO?
What is the difference between text files and binary files?
What is a char in c?