配列int[] scores = {55, 70, 89, 65, 32} の全要素の最大値を表示するプログラムを作成せよ。
int[] scores = {55, 70, 89, 65, 32}; int max = scores[0]; for (int i = 1; i < scores.length; i++) { if (max < scores[i]) { max = scores[i]; } } System.out.println(max);
配列int[] scores = {55, 70, 89, 65, 32} の全要素の最大値を表示するプログラムを作成せよ。
int[] scores = {55, 70, 89, 65, 32}; int max = scores[0]; for (int i = 1; i < scores.length; i++) { if (max < scores[i]) { max = scores[i]; } } System.out.println(max);
Generate
More than just a code generator. A tool that helps you with a wide range of tasks. All in one place.
Function from Description
Text Description to SQL Command
Translate Languages
Generate HTML from Description
Code to Explanation
Fix invalid Code
Get Test for Code
Class from Description
Regex from Description
Regex to Explanation
Git Command from Description
Linux Command
Function from Docstring
Add typing to code
Get Language from Code
Time complexity
CSS from Description
Meta Tags from Description