Advertisement
uniblab

Untitled

Jul 20th, 2017
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | None | 0 0
  1. class Program {
  2.     private static System.Int32 x = 0;
  3.  
  4.     private static System.Int32 f() {
  5.         x = x + 10;
  6.         return 1;
  7.     }
  8.  
  9.     public static void Main() {
  10.         x += f();
  11.         System.Console.WriteLine( x );
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement