Displaying ./code/strings/hello.c#include <stdio.h>
#include <string.h>
char mesg[] = "Hello, world!";
int main(void)
{
int len = strlen(mesg);
for(int i=0; i < len; i++) {
for(int j=0; j < i; j++)
printf(" ");
printf("%c\n", mesg[i]);
}
return 0;
}
|