I want to concatenate two string , but with space between name and surname

Asked

Viewed 89 times

-2

Exercise 3 - Create two strings and concatenate the two into a third string

name = 'alecio' surname ='Martins' integer name = name + surname print(integer name) aleciomartins

2 answers

0

Only concatenate the space between quotation marks

nome = 'alecio' 
sobrenome ='martins' 
nome_inteiro = nome + " " + sobrenome 
print(nome_inteiro)

-1

.Net

string nome_inteiro = string.Join(" ",new string[]{"Nome","Sobrenome"})

Browser other questions tagged

You are not signed in. Login or sign up in order to post.