#include <stdio.h>
int main() {
int ascii, i;
char texto[] = "Bom dia\nGood Moring\nBonjour";
printf("%s\n------------\n", texto);
for(i=0; texto[i]; i++) {
ascii = (int)texto[i];
if (ascii == 10) {
printf("Quebra de linha\n");
} else {
printf("%c = %d\n",texto[i],ascii);
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: