program Pr115_3; var k, n : integer; suma : real; begin readln(n); suma := 0; for k := 1 to n do suma := suma + 1 / sqr(2*k+1); writeln(suma); readln; end.

Motionless Mantis answered on November 9, 2021 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • In this challenge, you are required to calculate and print the sum of the elements in an array, keeping in mind that some of those integers may be quite large
  • sum of all n integers
  • Type in a code to declare a function sum, taking three parameters of the type double and returning their sum. Declare three variables a, b, and c in the main and pass them to the 'sum' function.
  • int sum = 0; for(int i = 10; i > 0; i -= 3) { sum += i; } System.out.println(sum);
  • s=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum()
  • var a = 5 b = 12 var sum = a b print( )
  • Which block of code will sum the numbers from 1 to n (including n) and store it in the variable "sum"?
  • i=int(input("enter the number")); sum=0; pro=1; while(i>0): d=1%10; if (d%2==0): sum=sum+d; else: pro=pro*d; i=i//10; print("sum=",sum,"product=",pro);
  • // Write a function that takes two numbers (a and b) as argument // Sum a and b // Return the result
  • programiz sum of n terms
  • // Write a function that takes two numbers (a and b) as argument // Sum a and b // Return the result
  • // Write a function that takes two numbers (a and b) as argument // Sum a and b // Return the result
  • Ways to write n as sum
  • suma = 0 for i in range(10): suma = suma + i print(suma)
  • sum of non primes : Write a program to print the sum of non-primes in the given N numbers. The numbers which are not primes are considered as non-primes.Input The first line of input will contain a positive integer (N). The following N lines will cont
  • sum of 2 problem in code

  • program Pr115_3; var k, n : integer; suma : real; begin readln(n); suma := 0; for k := 1 to n do suma := suma + 1 / sqr(2*k+1); writeln(suma); readln; end.

    0
    Popularity 1/10 Helpfulness 1/10 Language java
    Tags: java k n var
    Link to this answer
    Share Copy Link
    Contributed on Nov 09 2021
    Motionless Mantis
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.