Skip to content

The program takes a number and reverses it.#70

Open
nehashirude wants to merge 5 commits intoAs2771:masterfrom
nehashirude:master
Open

The program takes a number and reverses it.#70
nehashirude wants to merge 5 commits intoAs2771:masterfrom
nehashirude:master

Conversation

@nehashirude
Copy link
Copy Markdown

Problem Solution

  1. Take the value of the integer and store in a variable.
  2. Using a while loop, get each digit of the number and store the reversed number in another variable.
  3. Print the reverse of the number.
  4. Exit.

Problem Solution
1.	Take the value of the integer and store in a variable.
2.	Using a while loop, get each digit of the number and store the reversed number in another variable.
3.	Print the reverse of the number.
4.	Exit.
« How to make IRC bot in python? – my first post in TuxopiaLinked list implementation in C »
Infix To Postfix conversion in python
September 22, 2009 by Rag Sagar.V രാഗ് സാഗര്‍.വി

About Infix and Postfix
In an expression if the operators are placed between the operands, it is known as infix notation ( eg A+B) . On the other hand if the operators are placed after the operands then the expression is in postfix notation .( eg AB+)

Infix Notation                            Postfix Notation
(A-C)*B                                              AC-B*

A+(B*C)                                            ABC*+

(A+B)/(C-D)                                      AB+CD-/
Example to check whether an integer is a prime number or not using for loop and if...else statement. If the number is not prime, it's explained in output why it is not a prime number.
Example to check whether an integer is a prime number or not using for loop and if...else statement. If the number is not prime, it's explained in output why it is not a prime number.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant