write a program whose output will be-
1
12
123
1234
Answer Posted / riyadh ahmed
//Answer by Riyadh
#include<stdio.h>
int main ()
{
int i,j;
for (i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("
");
}
return 0;
}
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
Can a variable be both const and volatile?
Which is the memory area not included in C program? give the reason
What standard functions are available to manipulate strings?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
How can I convert a number to a string?
Explain pointers in c programming?
What are the characteristics of arrays in c?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What are the basic data types associated with c?
What are multibyte characters?
Can we compile a program without main() function?
What is #ifdef ? What is its application?
What is double pointer in c?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
When should volatile modifier be used?