Well Come to Professional Programmers

Learning Goal

Learning is a process to acquire, enhance, or make changes in one's knowledge. Learning Module presents essential and masks non-essential pieces of knowledge. It is self paced and presents required links to important examples and related terminologies essentially required for examination centric study. The module is focused on examination system in vogue in Pakistan and helps student acquire maximum marks in limited time of study.

Monday, April 12, 2010



Practical#3B



SOURCE PROGRAM



10 REM FIND OUT THE AVERAGE OF ANY FOUR NUMBERS

20 CLS

30 INPUT "ENTER FIRST NUMBER";N1

40 INPUT "ENTER SECOND NUMBER";N2

50 INPUT "ENTER THIRD NUMBER";N3

60 INPUT "ENTER FOURTH NUMBER";N4

70 PRINT "THE GIVEN NUMBERS ARE:";N1; N2; N3; N4

80 LET AVG = (N1 + N2 + N3 + N4) / 4

90 PRINT "AVERAGE OF GIVEN FOUR NUMBERS = "; AVG

100 END



OUTPUT



THE GIVEN NUMBERS ARE: 5 10 7 14
AVERAGE OF GIVEN FOUR NUMBERS = 9




Return to Top

No comments:

Post a Comment