Cod sursa(job #188068)

Utilizator VintyRazvan Vintilescu Vinty Data 6 mai 2008 19:14:31
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.31 kb
#include <iostream.h>
#include <fstream.h>
 long n;
 fstream f("prim.in",ios::in);
 fstream g("prim.out",ios::out);
 int main ()
{
 f>>n;
 f.close();
 ok=1;
 d=2;
 while(d<=n && ok=1;) {
			  if (n%10==0) ok=0;
			  else d=d+1;
		      }
if (ok) g<<"da";
   else g<<"nu";
g.close();
return 0;}