answersLogoWhite

0

Starting from the centre, move forward 100 pixels, turn 180 degrees and move forward 100 pixels (returning to the centre). Then turn 120 degrees. Repeat three times.

repeat 3 [fd 100 rt 180 fd 100 lt 120]

User Avatar

Wiki User

9y ago

What else can I help you with?

Continue Learning about Engineering

Which letters of the alphabet are not used alpha numeric code?

The only alphabet used in a modern periodic table is the English one, which is almost the same as the Latin one. Alphabets not used include Greek, Cyrillic, Hebrew, Thai, etc.


How do you draw a cycle in a c program?

/*PROGRAM TO IMPLEMENT GAUSS-jordan method.#include#define MX 20main(){float a[MX] [MX+1],m,p;int i,j,k,n;puts("\n how many equations?:");scanf("%d",&n);for(i=0;i


How do you draw a rhombus in c program?

C++ has no built-in graphics functions as graphics are platform-specific. You need a graphics library that provides a suitable API for your platform and its hardware in order to output graphics in C++. The code you use will therefore be dependant upon that library.


Write a program in c language to draw a diamond shaped if you give the number?

Hey, It is not the exact logic for a given program. Here i m giving the code with minimum number of executing steps. also i m sure that there doesn't exist any other way to print the same Diamond such that code executing steps will be less than mine. It is not copied from any website, book etc. #include void main() { int n,i,s,k,flagReverce=0; printf("Enter the no. of rows\n"); scanf("%d", &n); for (i=1; i>=1; i++) { for (s=n; s>i; s-) printf(" "); for(k=1; k<(i*2)-1; k++) printf("*") printf("\n") if (i == n) flagReverce = 1 if (flagReverce = 1) i-=2 } }


C program to print helical matrix?

//the following code will help you to write the program for(i=n-1, j=0; i > 0; i--, j++) //n is the order of the square matrix { for(k=j; k < i; k++) printf("%d ", a[j][k]); for(k=j; k < i; k++) printf("%d ", a[k][i]); for(k=i; k > j; k--) printf("%d ", a[i][k]); for(k=i; k > j; k--) printf("%d ", a[k][j]); } m= (n-1)/2; //calculate the position of the middle element if (n% 2 == 1) printf("%d", a[m][m]);//to print the middle element also //9809752937(udanesh)