#include <stdio.h>
#include <windows.h>
#include <string.h>
#define _MAX_STRING_SIZE_ 15
int main()
{
SetConsoleCP(65001);
char str [_MAX_STRING_SIZE_];
scanf("%s", &str);
int min = (int)str[0];
for(int i = 0; i < strlen(str); i++)
if((int)str[i] < min)
min = (int)str[i];
printf("%d", min);
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <stdio.h>
#include <windows.h>
#include <string.h>
#define _MAX_STRING_SIZE_ 15
int main()
{
SetConsoleCP(65001);
char str [_MAX_STRING_SIZE_];
scanf("%s", &str);
int min = (int)str[0];
for(int i = 0; i < strlen(str); i++)
if((int)str[i] < min)
min = (int)str[i];
printf("%d", min);
return 0;
}