Problem 5 Prove Summation Formula Q37156512

Please provide the full proof and its implementation ona c++ program

Problem 5) Prove the summation formula

Problem 5) Prove the summation formula Show transcribed image text Problem 5) Prove the summation formula


Answer


implementation code :-

#include <iostream>

using namespace std;

int main()
{
cout<<“summation formula: 1 to N-nn”;
cout<<“1+2+3+4+……+N=N(N+1)/2n”;
cout<<“Enter the number:”;
int N;
cin>>N;
for(int i=1;i<=N;i++)
{
if(i==N)
cout<<i<<“=”;
else
cout<<i<<“+”;
}
cout<<N*(N+1)/2;

return 0;
}

main.cpp Online C+ Compiler Code, Compile, Run and Debug C++ program online Write your code in this editor and press Run bu

We were unable to transcribe this imagemain.cpp Online C+ Compiler Code, Compile, Run and Debug C++ program online Write your

OR
OR

Leave a Comment

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