Computer Science, asked by caroline2002, 11 months ago

write a code that prints your full name and your birthday as separate strings.
need answer asap.​

Attachments:

sswaraj04: mention the programming language!
caroline2002: python
caroline2002: thank you so much
caroline2002: means a lot
sswaraj04: nope

Answers

Answered by sswaraj04
71

Answer:

#with manual input

x = input('Enter your name')

y=input('Enter your birthday')

print(x,"is born on",y)

#directly one liner :all three are seperate strings

print("xyz","is born on,"dd-mm-yyyy")

Explanation:

Answered by ParvezShere
4

Using C++

#include<iostream>

#include<string.h>// string class is declared here

using namespace std;

int main()

{

String name , birthday; // the two strings are declared here

cout<<"Please Enter the details " <<endl;

cout<<"Enter your name "<<endl;

cin>>name; // to input name from the user

cout<<"Enter your birthday" <<endl;

cin>>birthday;// to input birthday from the user.

}

Similar questions