Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
- AuthorPosts
- bajeanParticipant
sir thanx for ur post,
yaa…its good…..but sir is it necessary to input three strings…..???
below written program will output initials of the name…12345678910111213141516171819202122<br />#include<stdio.h><br />#include<conio.h><br />#include<string.h><br />void main()<br />{<br />int i,l;<br />char name[40];<br />clrscr();<br />printf("enter ur name:");<br />gets(name);<br />l=strlen(name);<br />printf("%c",name[0]);<br />for(i=0;i<=l;i++)<br />{<br />if(name==' ')<br />{<br />printf("%c",name[i+1]);<br />}<br />}<br />getch();<br />}can u modify this one??….to get the desired output….
bajeanParticipantyou can create an adjustable box by initiating graphics:
C123int griver=DETECT,gmode;initgraph(&gdriver,&gmode,"");rectangle(x1,y1,x2,y2);whatever the value u want for the variables……..
- AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)