Cod sursa(job #222869)
| Utilizator | Data | 25 noiembrie 2008 20:16:28 | |
|---|---|---|---|
| Problema | Cifra | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <fstream.h>
#include <iostream.h>
#include <math.h>
int main ()
{ int a,b,c,s;
instream in ("cifra.in");
in>>a;
for(b=1;b<=a;b++)
{ s=s++pow(b,b); }
ofstream out ("cifra.out");
out<<s%10;
