All pastes #32710 Raw Edit

Stuff

public text v1 · immutable
#32710 ·published 2005-12-06 21:00 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
main()
{
int lens , lent ,i, par;
char *s,*t  ;


printf ("Dwse to mege8os tou s \n") ;
scanf ("%d", &lens ) ;
s=(char*)malloc(lens*sizeof(char) ) ;
printf( "Dwse alfari8mhtikh timh gia to s \n") ;
scanf ("%s", s ) ;


printf ("Dwse to mege8os tou t \n") ;
scanf ("%d", &lent ) ;
t=(char*)malloc(lent*sizeof(char) ) ;
printf( "Dwse alfari8mhtikh timh gia to t \n") ;
scanf ("%s", t ) ;



for ( i=0 ; i<lent ; i++)
 s[lens-1] = t[i]  ;


for ( i=0 ; i<(lent+lens) ; i++)
printf ("%c" , s[i] ) ;


}