Quick actions

cmd+k|ctrl+k

Navigation

Languages

№52

Snippet info

Language

Cpp

Visibility

public

Author

nxnxngh

Created

2018-10-27T14:29:55Z

Updated

2018-11-07T08:26:12Z

#include<iostream>
#include<cmath>
using namespace std;
int main() {
int b,c ,a1,b1;
c=0;
b=0;
for(int a = 1;a<11;a=a+2)
{
a1 = pow(a,2);
b = b+2;
b1 = pow(b+2,2);
c=c+a1-b1;
}
 cout<<"Result ="<<c<< endl;
 return 0;
      
}
INFO