Please provide the full proof and its implementation ona c++ program
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;
}
We were unable to transcribe this imagemain.cpp Online C+ Compiler Code, Compile, Run and Debug C++ program online Write your
OR
OR