Ask Question

Assume that name and age have been declared suitably for storing names (like "abdullah", "alexandra" and "zoe") and ages respectively. assume also that stdin is a variable that references a scanner object associated with standard input. write some code that reads in a name and an age and then prints the message "the age of name is age" on a line by itself, where name and age are replaced by the values read in for the variables name and age. for example, if your code read in "rohit" and 70 then it would print out "the age of rohit is 70" on a line by itself. there should not be a period in the output.

+1
Answers (1)
  1. 15 May, 00:22
    0
    Name = "Bob"

    age = 50

    print ("The age of", name, "is", age)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Assume that name and age have been declared suitably for storing names (like "abdullah", "alexandra" and "zoe") and ages respectively. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers