Home | Register | Login | Contact us
Introduction
Computer programming
Variables, constants
Mathematical operators
Analysis and Problem solving
Flowchart
Algorithm
Flowchart Level 1
Sum of two numbers
Sum of three numbers
Sum of N numbers
Subtraction
Multiplication
Division
Tables generation
Largest numbers out of 2
Largest number out of 3
Largest number out of N
Ascending orders (Alphabets)
Descending orders (Alphabets)
Array add
Array subtract
Two Matrix addition
Two matrix subtraction
Two Matrix multiplication
Ascending order (Numbers)
Descending order (Numbers)
Palindrome
String manipulation
Fibonacci numbers
Generate triangle using
Computer Programming Fundamentals – Problem solving skills
Problem: How to find largest of two numbers?
Flowchart Procedure Try It Yourself

Largest of Two Numbers

Start


Read A,B


Is A > B Y N


Print A Print B
Stop


Step 1: Read two numbers in variables A and B

Step 2: Find A is greater than B, if so print the variable A

Step 3: Else print the variable B

Enter 1st number (A):    
Enter 2nd number (B):