Created
February 12, 2026 14:44
-
-
Save Arsenii123/f7892140a74e7cc189115187c864e7f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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