Note that the case values are character constants' R,' 'G' and 'B.' Each ... printf ( "Enter character (R/G/B): " );. color= getchar ();. switch (color) {.
確定! 回上一頁