6 Şubat 2013 Çarşamba

Sixth solution of Project Euler


   


#include "stdafx.h"
#include <iostream>
using namespace std;  
void findout() {  
      int a,b=0,c=0;

for(a=1;a<101;a++) {
b+=a;
c+=(a*a);
}
       b*=b;
  cout << "Result :" << b-c << " efekanpulatli.blogspot.com" << endl;
}

int main()
{
 findout();
system("pause");
return 0;
}

Hiç yorum yok:

Yorum Gönder