mirror of
https://github.com/nolongeractivemp3/shipthatcode-c.git
synced 2026-11-24 10:45:12 +01:00
lesson 4 fixed
This commit is contained in:
1 parent
19bf3a62f1
commit
cb7facc880
1 file changed
+1
-1
@@ -4,7 +4,7 @@ int main(void) {
|
|||||||
int nums[5];
|
int nums[5];
|
||||||
for (int i = 0; i < 5; i++) scanf("%d", &nums[i]);
|
for (int i = 0; i < 5; i++) scanf("%d", &nums[i]);
|
||||||
|
|
||||||
int best = 0;
|
int best = nums[0];
|
||||||
for (int i = 0; i<5; i++) {
|
for (int i = 0; i<5; i++) {
|
||||||
if (nums[i] > best) {
|
if (nums[i] > best) {
|
||||||
best= nums[i];
|
best= nums[i];
|
||||||
|
|||||||
Reference in new issue
Block a user