1
232
34543
4567654
can anyone tell me how to slove this c question
Answer Posted / anna
#include <stdio.h>
int main ()
{
int i;
for(i = 1; i <= 5; i++)
{
int k;
for(k = 0; k < 11 - i; k++)
{
printf(".");
}
int j;
for(j = 0; j < i; j++)
{
printf("%d", i + j);
}
for(j -= 2; j >= 0; j--)
{
printf("%d", i + j);
}
printf("\n");
}
return 0;
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is it valid to address one element beyond the end of an array?
What is the full form of getch?
In a switch statement, what will happen if a break statement is omitted?
What are the application of void data type in c?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
How do you print only part of a string?
What is character constants?
What are the functions to open and close file in c language?
Does * p ++ increment p or what it points to?
Why c is a mother language?
What do you mean by dynamic memory allocation in c?
What is a structure member in c?
Is stack a keyword in c?
What is calloc malloc realloc in c?
What does the error 'Null Pointer Assignment' mean and what causes this error?