I am having trouble writng a program in BASIC that utilizesnested For .... Next
ID: 3609272 • Letter: I
Question
I am having trouble writng a program in BASIC that utilizesnested For .... Next loops that creates a diamond shape out ofasterisks like the following: * *** ***** ******* ********* ******* ***** *** * You may use output statements that print a single asterisk(*),a single space and a single carriage return. Can anyone help. I will rate as lifesaver I am having trouble writng a program in BASIC that utilizesnested For .... Next loops that creates a diamond shape out ofasterisks like the following: * *** ***** ******* ********* ******* ***** *** * You may use output statements that print a single asterisk(*),a single space and a single carriage return. Can anyone help. I will rate as lifesaverExplanation / Answer
please rate both answers, the other was a puretranslation - thanks CLS FOR i = 0 TO 4 FOR j = 0 TO 5 - i PRINT " "; NEXT j FOR j = 5 - i TO 5 + i PRINT "*"; NEXT j PRINT " " NEXT i FOR i = 2 TO 5 FOR j = 0 TO i PRINT " "; NEXT j FOR j = i TO 2 * 5 - i PRINT "*"; NEXT j PRINT " " NEXT i
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.