Skip to content

Instantly share code, notes, and snippets.

@Arsenii123
Created February 12, 2026 14:44
Show Gist options
  • Select an option

  • Save Arsenii123/f7892140a74e7cc189115187c864e7f6 to your computer and use it in GitHub Desktop.

Select an option

Save Arsenii123/f7892140a74e7cc189115187c864e7f6 to your computer and use it in GitHub Desktop.
DECLARE @date int=22
IF @date>12
BEGIN
PRINT 'Hello!'
END
ELSE
BEGIN
PRINT 'Good evning'
END
--2
DECLARE @num int =10
DECLARE @nn int =10
DECLARE @n int =0
WHILE @n<=@num
BEGIN
SET @n=+1
SET @num=@num*(@nn-@n)
END
--3
DECLARE @line nvarchar(50)='dad'
IF @line=REVERSE(@line)
BEGIN
PRINT 'Yes'
END
ELSE
BEGIN
PRINT 'No'
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment