0% found this document useful (0 votes)
24 views1 page

Algorithm Session Homework .: Blue Colour'

The document contains 6 programming algorithm examples with different inputs, conditions, and outputs. The algorithms demonstrate basic programming concepts like input, conditions, loops, calculations, and output.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

Algorithm Session Homework .: Blue Colour'

The document contains 6 programming algorithm examples with different inputs, conditions, and outputs. The algorithms demonstrate basic programming concepts like input, conditions, loops, calculations, and output.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

ALGORITHM SESSION HOMEWORK……………….

1 START 2 START
DEFINE DEFINE
INPUT NUM 1 , NUM2 INPUT NUM
SQUARE NUM1 * NUM2 IF NUM == 5 , 6
PRINT SQUARE PRINT NUM
STOP… STOP …..

3 START 4 START
DEFINE DEFINE
INPUT NUM FOR X = 1 TO 100 (STEP 5 BY 5)
IF NUM “1-10’’ PRINT X
PRINT ‘’BLUE COLOUR’’ NEXT X
ELSE NUM ‘’10-20’’ STOP
PRINT ‘’GREEN COLOUR’’
ELSE NUM ‘’20-30’’
PRINT ‘’RED COLOUR’’
ELSE NUM > 30
PRINT ‘’INVALID COLUR’’
END IF
END IF
END IF
STOP…..

6 START 5 SRART
DEFINE DEFINE
INPUT NO1,NO2,NO3,NO4,NO5 INPUT NUM
TOT = NO1+NO2+NO3+NO4+NO5 IF NUM % 2= 0
AVG = TOT / 5 PRINT NUM ‘’IS AN EVEN NO’’
IF ASSENDING ORDER OF THIS NO PRINT ‘’HOW MANY EVEN NO’’
PRINT 1ST NO AS A MINIMUM NO ELSE
PRINT 5TH NO AS A MAXIMUM NO PRINT NUM’’IS ANN ODD NO’’
END IF PRINT’’HOW MANY ODD NO’’
END…… END IF
STOP

You might also like