Computer Science, asked by ramsmedicine, 1 month ago

Store your favorite subject's name in a variable. Write a program to join that variable to a proper sentence and print it.
Example: "My favorite subject is Computer Science

pls tell me this answer

Answers

Answered by shreya50209
0

Answer:

//I'm showing it with JavaScript

var favSub = "My favourite subject is maths";

alert(favSub);

Answered by allysia
0

Language:

Python

Program:

subject=input("Enter your favourite subject's name: "))

print("My favorite subject is",subject)

Explanations:

  • input() takes input in python by default thr dataype is set to String.
  • print lets you print out the output on the screen.
Similar questions