Procházet zdrojové kódy

Ran ci/run-all.sh, formatted hw1/task4 AGAIN :D

Joshua Rutschmann před 8 roky
rodič
revize
2de89097cd
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      hw1/task4/src/lib.rs

+ 2
- 2
hw1/task4/src/lib.rs Zobrazit soubor

@@ -8,8 +8,8 @@ pub fn square_of_sum(n: i32) -> i32 {
8 8
 
9 9
 pub fn sum_of_squares(n: i32) -> i32 {
10 10
     let mut i: i32 = 0;
11
-    for x in 1..n+1 {
12
-       i += x.pow(2);
11
+    for x in 1..n + 1 {
12
+        i += x.pow(2);
13 13
     }
14 14
     i
15 15
 }

Loading…
Zrušit
Uložit