a program that will display teh string "HELLOWORLD" in ascending style
#include<stdio.h>
#include <conio.h>
void main()
char str[]="HELLOWORLD"
int i. choice;
while(1)
{
clrscr();
printf("(1) Ascending style\n");
printf("(2) Exit\n");
printf("enter your choice:");
scanf("%d", &choice);
printf("\n\n");
switch(choice)
{
case 1: [B]for (i=0; str[i]!='\0';i++) //--> Please!!! this is where i need
printf("%.*s\n",i,str); //--> help..how does this work? what
printf("%.*s\n",i,str); //--> does .* stand for??? please
getch(); // i need help....how is descending style??
break;
[/B] case 2: exit(1);
default: printf(\n\nInvalid choice\n\n");
}
getch();
}