How to take input from user and print sum of 2 values in a message box in uipath

✅ How to Take Input from User and Display the Sum of Two Numbers in UiPath

 

🧩 Step 1: Use “Input Dialog” to Get the First Number

  • Activity: Input Dialog

  • Dialog Title: "Sum"

  • Input Label: "Enter the first number"

  • Input Type: Text Box

  • Output Variable: num1 (Int32 )

This prompts the user to enter the first number and stores it in the variable A.


🧩 Step 2: Use Another “Input Dialog” for the Second Number

  • Activity: Input Dialog

  • Dialog Title: "Sum"

  • Input Label: "Enter the second number"

  • Input Type: Text Box

  • Output Variablenum2 (Int32 )

This captures the second value entered by the user into the variable B.


🧩 Step 3: Assign the Sum to a New Variable

Since the input values are strings, they need to be converted to integers before performing arithmetic.

  • Activity: Assign

  • To: num3 

  • Value: (num1+num2)

Here, num3  is  an Int32 


🧩 Step 4: Display the Result in a Message Box

  • Activity: Message Box

  • Text“the sum of the two numbers are”+ num3.ToString

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Company

Hello! I’m a passionate automation enthusiast with a background in Python programming and UiPath automation. With several years of experience in the insurance industry, I’ve witnessed firsthand the challenges organizations face in streamlining processes and managing data efficiently.

Features

Most Recent Posts

eBook App for FREE

Lorem Ipsum is simply dumy text of the printing typesetting industry lorem.

Category

Unlock the synergy of Python and UiPath to elevate your automation projects 

My skills

Automation

Illustrator designing

Web developing

Content writing

Learn from ME

Uipath Automation

Python programing

latest trends in IT

Designs using illustrator

Purchase

Automation projects

Graphic designs

web Boiler plates

Newsletter

Help

Copyright

Privacy Policy

© 2024 created by SubinSuresh