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
Do array subscripts always start with zero?
What is the difference between call by value and call by reference in c?
What is linear search?
What is the difference between %d and %i?
Why do we need functions in c?
What is spaghetti programming?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What is variables in c?
Is c is a procedural language?
What is pointer and structure in c?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Explain the use of fflush() function?
Are there constructors in c?
Explain data types & how many data types supported by c?