fork download
  1. program ount_7 (input, output);
  2. var n, n1, n2, metr : integer;
  3. begin
  4. readln(n);
  5. n1:=(n mod 10);
  6. n2:=(n din 10);
  7. metr:=0;
  8. if (n1=7) then metr:=metr+1;
  9. if (n2=7) then metr:=metr+1;
  10. writeln(metr)
  11. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pas: In main program:
prog.pas:6: error: syntax error before `din'
stdout
Standard output is empty