Computer Science, asked by aadarrshofficial, 9 months ago

4. Write a program where the user inputs their nickname, shoe size, and birth location. The computer prints out a sentence on the person’s nickname, shoe size, and birth location.
5. Write a program which asks the user to input their age and shoe size (integer). The output is the product of their age and shoe size.

Answers

Answered by nihal0077
3

question 4 =>

class print

{

void main (String n, String b, int s)

{

S. o. pln("nickname = " + n) ;

S. o. pln("shoe size = " + s) ;

S. o. pln("birth location = " + b) ;

} }

question 5 =>

class product

{

void main ( int a, int s)

{

int c = a*s;

S. o. pln("Product of age and shoe size = " + c);

} }

( Both the questions can also be done by the help of import keyword)

Thank you bahut samay baad dhank ka question solve kiye hai...

MARK AS BRAINLIEST........

Similar questions