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
Tell us two differences between new () and malloc ()?
Write a progarm to find the length of string using switch case?
What language is lisp written in?
Explain what is the difference between a string and an array?
What is a pointer and how it is initialized?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
What is the right type to use for boolean values in c? Is there a standard type?
Write a code to remove duplicates in a string.
Explain what is a static function?
Explain what is #line used for?
What is bubble sort in c?
What is the value of h?
What do you mean by a local block?
What is double pointer?
What is the difference between procedural and declarative language?