English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-11-11 00:13:33 · 2 answers · asked by Nizam 1 in Computers & Internet Programming & Design

cpp program

2007-11-11 01:24:22 · update #1

2 answers

You didn't specify which language should be used, how you want to see the final result, how to input and output the data, Windows/DOS application? etc.


'Draw the chessboard
FOR i = 1 TO 8
IF (i MOD 2) = 0 THEN
CurrentRow$ = "*.*.*.*."
ELSE
CurrentRow$ = ".*.*.*.*"
END IF

IF i = 1 THEN CurrentRow$ = REPLACE$(CurrentRow$, "q", 5) 'Black queen
IF i = 8 THEN CurrentRow$ = REPLACE$(CurrentRow$, "Q", 4) 'White queen

PRINT CurrentRow$
NEXT

2007-11-11 00:40:41 · answer #1 · answered by TBird 4 · 0 0

No thanks.

You'd learn more by DOING YOUR OWN assignment

2007-11-11 08:17:13 · answer #2 · answered by stu_the_kilted_scot 7 · 0 0

fedest.com, questions and answers