Advertisement
DrAungWinHtut

basic1.c

May 4th, 2023
709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int x = 10; //initilize
  5.     int y = 20;
  6.     int sum = x + y;
  7.     int mul = x * y;
  8.     int div = y / x;
  9.     int diff = y - x;
  10.     printf("x + y = %d\n", sum);
  11.     printf("x * y = %d\n", mul);
  12.     printf("y / x = %d\n", div);
  13.     printf("y - x = %d\n", diff);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement