Want Calculate Sum Squares Integers Excepting Negatives First Line Input Integer N 1 Q37204436

  • We want to calculate a sum of squares of some integers,excepting negatives
  • The first line of the input will be an integer N (1 <= N<= 100)
  • Each of the following N test cases consists of one linecontaining an integer X (0 < X <= 100), followed by Xintegers (Yn, -100 <= Yn <= 100) space-separated on the nextline
  • For each test case, calculate the sum of squares of theintegers excepting negatives, and print the calculated sum to theoutput. No blank line between test cases
  • (Take input from standard input, and output to standardoutput)
  • Do not use the for statement
  • Use only standard libraries
  • Write it in
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.