answersLogoWhite

0


Best Answer
Best Answer - Chosen by Voters#include

#include

main()

{

int i;

clrscr();

for(i=10;i<=20;i++)

{

gotoxy(10,i);

printf("*");

}

for(i=10;i<=30;i++)

{

gotoxy(i,20);

printf("*");

}

for(i=20;i<=30;i++)

{

gotoxy(30,i);

printf("*");

}

for(i=30;i>=20;i--)

{

gotoxy(i,10);

printf("*");

}

for(i=10;i<=30;i++)

{

gotoxy(20,i);

printf("*");

}

for(i=20;i>=10;i--)

{

gotoxy(i,30);

printf("*");

}

getch();

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a program in c for making swastik fig by using for loops and space loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What was the name of the second space program?

The second American space program aimed at making further progress toward manned exploration of the Moon was the Gemini program.


Why not to use nested for loops 3 times?

You never want to use nested loops if you can avoid it. Each additional level of loop you add increases the work done by your program exponentially. There are certain cases where this is unavoidable, of course. For example, iterating over objects in 2D or 3D space can require many levels of nested loops.


What does a short line in front of the word program mean---- program?

blank program


What is the space program?

A program by JFK to get The Americans to space or to the moon!


When did the space program end?

The space program has not ended


What was the name of the space program to send two men into space?

Soviet Space Program


The American space program that carried teams of mostly three astronauts into space?

The space program was Project Apollo, or the Apollo Program.


What was the name of corning glass works first computer?

Corning glass didn't make computers. They began by making titles for the space program and then into making dishes for consumers.


Does Moldova have a space program?

Moldova is poor, no money for a space program.


Is Neil Armstrong's sons in a space program?

No they are not involved with space program.


What was the name of the soviet space program in 1970?

Soviet Space Program/ your face


When was Space Shuttle program created?

Space Shuttle program was created in 1981.