write a program whose output will be-
1
12
123
1234
Answer Posted / chaitanya
#include<stdio.h>
void main()
{
int s,i,j,n=1;
printf("enter the length of the sequence
");
scanf("%d",&s);
for(i=1;i<=s;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf(" ");
}
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Tell us two differences between new () and malloc ()?
Can an array be an Ivalue?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is a pointer on a pointer in c programming language?
what are bit fields in c?
What is the return type of sizeof?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What are the features of the c language?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What are pointers really good for, anyway?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is a pointer variable in c language?