Changes to be committed:

modified:   proglabs/lab5/1.c
	new file:   proglabs/lab5/10.c
	new file:   proglabs/lab5/11.c
	new file:   proglabs/lab5/12.c
	new file:   proglabs/lab5/13.c
	new file:   proglabs/lab5/14.c
	modified:   proglabs/lab5/2.c
	new file:   proglabs/lab5/3-1.c
	new file:   proglabs/lab5/3-2.c
	deleted:    proglabs/lab5/3.c
	new file:   proglabs/lab5/4.c
	new file:   proglabs/lab5/5.c
	new file:   proglabs/lab5/6.c
	new file:   proglabs/lab5/7.c
	new file:   proglabs/lab5/8.c
	new file:   proglabs/lab5/9.c
	new file:   proglabs/lab5/tmp.out
This commit is contained in:
2025-10-30 00:14:16 +07:00
parent c405abcdb8
commit 01afccea5b
17 changed files with 233 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <stdio.h>
#include <wchar.h>
#include <locale.h>
int main(){
setlocale(LC_ALL, "");
wchar_t ch[40];
wscanf(L"%ls", ch);
size_t len = wcslen(ch);
for (int i = len - 1; i >= 0; --i) {
wprintf(L"%lc", ch[i]);
}
printf("\n");
return 0;
}