This commit is contained in:
2025-11-21 03:45:38 +07:00
parent d219cc1a7b
commit 5cbfe19d48
12 changed files with 242 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#include <stdio.h>
int main(void){
int x;
unsigned long input = 0;
while((x=getchar())!='\n'
&& ((x>='a' && x<='z')
|| (x>='A' && x<='Z'))){
if (x<=32 && x!='\n' && x!=' ' && x!='\t') return -1;
printf("%d\t",x);
if(x>='a' && x<='z') x -= ('a'-'A');
printf("%d\t",x);
if(x>='A' && x<='Z') input = (input*100)+(x);
printf("%d %lu\n",x,input);
}
return 0;
}