write a code that prints your full name and your birthday as separate strings.
need answer asap.
Attachments:
sswaraj04:
mention the programming language!
Answers
Answered by
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
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
Math,
6 months ago
Social Sciences,
6 months ago
Math,
6 months ago
History,
11 months ago
Social Sciences,
11 months ago
Chemistry,
1 year ago
Physics,
1 year ago
Math,
1 year ago