Powered By Blogger

Monday, May 4, 2009

C Programming

#include
#include
#include
void main()
{
int n,i;
char st[20];
clrscr();
printf("Enter a string :");
gets(st);
printf("Enter the value of n ");
scanf("%d", &n);
int length=strlen(st);
int b=length;
for(i=length-n;i
{

printf("%c",st[i]);

}
for(i=0;i
printf("%c",st[i]);
getch();
}

0 comments:

About This Blog

This is an important blog about updated news about computer science and technology.

Blog Archive

Visitors

  © Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008

Back to TOP