Skip to content

Instantly share code, notes, and snippets.

@karan-ta
Last active September 6, 2020 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karan-ta/27bb2ed31cee6de0eaeb6ba88835577e to your computer and use it in GitHub Desktop.
Save karan-ta/27bb2ed31cee6de0eaeb6ba88835577e to your computer and use it in GitHub Desktop.
main ()
{
var x = 3;
var y = 2;
print ("adding");
print (x+y);
print ("subtracting");
print (x-y);
print ("Multiplying");
print (x*y);
print ("Dividing");
print (x/y);
print ("Remainder operator");
print (x % y);
print ("Find Percentage");
print (x/y*100);
print ("---greater than---");
print (x > y);
print ("---less than---");
print (x < y);
print ("---equality operator---");
print (x == y);
print ("---not equal operator---");
print (x != y);
print ("---check $x for even number---");
print (x % 2 == 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment