Advertisement
Guest User

test.c

a guest
Aug 25th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. //Some things don't like voids.
  3. int main()
  4. {
  5.     //Set up some math variables.
  6.     int ex = 2+(3*1);
  7.     int why = 3*2;
  8.     int zee = 1+6-1+1;
  9.     //Set up a temporary variable to hold info.
  10.     int temp = 1-1;
  11.     //Do some completely useful math.
  12.     temp = (ex * why * 1) + 5;
  13.     temp = (temp * (1+1-1)) / (zee * 1);
  14.     //Output the result.
  15.     printf("Result = %i", temp);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement