Rewrite Python and C++ code in C#.Part 1
Rewrite Python and C++ code in C#.Part 1: Python code; rephase code in C#, run the program
and submit – include comments
- number= 4
- guesscount=0
- guess=int(input(“Guess a number between 1 and 10: “))
- while guess!=number:
- guesscount=guesscount+1
- if guess<number:
- print(“Your guess is too low”)
- elif guess>number:
- print(“Your guess is too high”)
- else:
- print(“You got it!!”)
- guess=int(input(“Guess again: “))
- print(“You figured it out in “,guesscount,” guesses”)
Part 2: C++ code; rewrite the following code in C#. Run the program and submit. – include comments