subject

This is the assignment

Write a program that:

stores your name in one variable called name
stores your age in another variable called age
prints a one-line greeting that includes your name and your age.
Your program should output something like this:

Hi! My name is Arthur and I am 62 years old.
Hint: Do not get user input for the values of name and age but instead simply save these values inside your program as static variables, or variables that do not change value.

What should my code be?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
question
Computers and Technology, 24.06.2019 19:30
Can someone who is skilled at coding create me a java chess game. don't copy from online source codes. make it original ! : d
Answers: 1
question
Computers and Technology, 25.06.2019 21:30
Hallo! was ist die hauptstadt von northdakote wirklich schätzen, wenn jemand gefragt
Answers: 2
You know the right answer?
This is the assignment

Write a program that:

stores your name in one variabl...
Questions
question
Mathematics, 12.01.2021 06:30
question
Chemistry, 12.01.2021 06:30
question
English, 12.01.2021 06:30
question
Spanish, 12.01.2021 06:30
question
Mathematics, 12.01.2021 06:30
Questions on the website: 13722367