Skip to content

Instantly share code, notes, and snippets.

@daleth90
Last active Oct 20, 2018
Embed
What would you like to do?
// 印出1~20之間的所有奇數
for ( int i = 1; i <= 20; i++ ) {
// 如果是偶數,則跳過
if ( i % 2 == 0) {
continue;
}
Console.Write( i + " " );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment