Cod sursa(job #627899)

Utilizator octav1234Pocola Tudor Octavian octav1234 Data 30 octombrie 2011 21:47:35
Problema Cifra Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.2 kb
#include<fstream.h>
int main()
  {
	int n,p,s,u;
	ifstream f("date.in");
	ofstream g("date.out");
	f>>n;
        s=0;
	p=n/10;
	s=s+p;
	u=s%10;
	g<<u;
	f.close();
	g.close();
	return 0;  
}