What is your  conclusion/Observation?? Create a nested looping program in C-language that will produce the given output below (use any of the looping statements) * ** *** **** ***** **** *** ** *

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter3: Understanding Structure
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

What is your  conclusion/Observation??

Create a nested looping program in C-language that will produce the given output below (use any of the looping statements)

*
**
***
****
*****
****
***
**
*

---------------------------------------------------------------------------------

#include<stdio.h>
#include<conio.h>
#include<windows.h>
void gotoxy(int x, int y)
{
COORD pos ={x , y};
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
main()
{
    int x,y;
    for (y=1; y<=5; y++)
    {
        gotoxy(x,y);
        printf("*");
        getch();
    }
}

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage