Ad
Code
Diff
  • using System.Linq;
    
    public class Program
    {
      public static int FindSquaresInArray(int[] arr) => arr.Sum(x => x * x);
    }
    • using System.Linq;
    • public class Program
    • {
    • public static int FindSquaresInArray(int[] arr) => arr.Sum(x => x*x);
    • public static int FindSquaresInArray(int[] arr) => arr.Sum(x => x * x);
    • }
Code
Diff
  • worldName = "World"
    greetWord = "Hello"
    sign = "!"
    spacing = " "
    comma = ","
    print(greetWord+comma+spacing+worldName+sign)
    • worldName = "World"
    • greetWord = "Hello"
    • sign = "!"
    • spacing = " "
    • print(greetWord+spacing+worldName+sign)
    • comma = ","
    • print(greetWord+comma+spacing+worldName+sign)