C++ comp. (10, permasaged)

3 Name: #!/usr/bin/anonymous : 2006-07-18 02:47 ID:Heaven

`#include <iostream>
#include <string>
using namespace std;
string notpi = "8)6960471080342487839171988387240573396426148448206503754294990478523619517317534431735893708976625124";

char calculate(char input) {

if(input < '5') return (input + 5);
return (input - 5);

}

int main() {

for(string::iterator i=notpi.begin();i<notpi.end();++i)
*i = calculate(*i);
cout << notpi << endl;
return 0;

}`

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: