Computer Science, asked by chrisalookaran2007, 6 months ago

Write a program to accept user’s input and print the greater of the two numbers

Answers

Answered by sarveshnavale
1

Python and HTML answer.

Pyhon:

description:

a means the first users input and b means second input

Answer:

a = into('Enter first number- ')

b = into('Enter your number -')

if a > b :

print('The greater number is', a)

else:

print('The greater number is', b)

HTML ANSWER:

description:

a means first input and b means second input

I have used the prompt triks because that is very easy but you can use also a . get options if you want that please Comment i will give code in comment option

only the Javascript has used you may add the html tags

Answer:

<script>

a = prompt( Enter the First number) ;

b = prompt(Enter the second number) ;

if ( a > b) {

document. write(' The greater number is ' + a) ;

}

else {

document. write(' The greater number is ' + b);

}

<\script>

Answered by sg463458
0

Answer:

Can u please mark me brainliest

Explanation:

If u will mark me brainliest it will help me a lot

Similar questions