Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  hi
Language: C/C++
Code:
#include<stdio.h> 
#include<string.h> 
 void main() 

     char a[50],b[50];  
     int i,j,k,c=0,n,n1,l,l1,i1; 
     printf("Enter string"); 
        for(i1=0;i1<50;i++) 
        { 
     scanf("%s",a); 
        } 
     printf("Enter position"); 
     scanf("%d",&n); 
     printf("Enter no of cars to be deleted"); 
     scanf("%d",&n1); 
     l=strlen(a); 
     for(i=0;i<n;i++) 
     {b[++c]=a[i]; 
     } 
     for(j=(n+n1-1);j<l;j++) 
     { 
          b[++c]=a[j]; 
     } 
     l1=strlen(b); 
     for(k=0;k<l1;k++) 
     {printf("%c",b[i]); 
     } 

           
          
Comments: