c I'm a beginner in programming.
It's a question. You are plotting a source that you want to enter an alphabetical membrane to convert it to ASCII code values and obtain the minimum maximum value.
Condition : Do not use if statements.
Question: 1. Use an array to output it as an ASCII code value.
2. Implement how the maximum minimum value of the ASCII code value comes out using the maximum minimum value formula above.
3. As long as the variables declared above are maintained as much as possible!!!!
First of all, I've devised a way to get the maximum and minimum values, but it's so hard to implement them.
I'm currently working on it with my brain, but I don't know what to do or how to implement it, and it's so hard. Please help me ㅠ<
c ascii
If you have set the minimum maximum value, I think you can make it by referring to the code below that prints the ASCII code.
#include <stdio.h>
int main(){
//array of characters
char str[5]={'a','b','c','d','!'};
for(int i=0;i<5;i++){
int value = str[i];// If you insert char in the int type variable, it can be read as a number.
printf("%d\n",value);
}
return 0;
}
© 2024 OneMinuteCode. All rights reserved.