#include<stdio.h>
#include<conio.h>
void substr(char x[20]);
main()
{
char a[20];
int l;
clrscr();
puts("ENter String=");
substr(a);
getch();
}
{
int i,beg,n;
printf("ENter Beg=");
scanf("%d",&beg);
printf("ENter How many Leteers=");
scanf("%d",&n);
for(i=beg;i<=n;i++)
{
printf("%c",x[i]);
}
}
No comments:
Post a Comment