# Some simple Quick Basic Programs-1

| May 5, 2012

***************

4

***************

‘A program to show digits 1 to 5 on screen

CLS

x% = o

x% = x% + 1

PRINT x%

x% = x% + 1

PRINT x%

x% = x% + 1

PRINT x%

x% = x% + 1

PRINT x%

x% = x% + 1

PRINT x%

END

***************

5

***************

‘Conversion from Centigrade to Fahrenheit

CLS

INPUT “Temperatune in centigrade scale=”; c

f = (c * 9 / 5) + 32

PRINT “Temperature in Fahrenheit scale=”; f

END

***************

6

***************

REM  Fahrenheit to Centigrade

CLS

INPUT “Enter temperature in Fahrenheit”; f

c = (5 * (f – 32)) / 9

PRINT “Temperature in Centigrade”; c

END

***************

7

***************

‘Kilometer to mile converter

CLS

INPUT “Enter the value of distance in kilometre=”; k

m = k * .625

PRINT “The value of distance in mile is=”; m

END

***************

8

***************

‘Mile to kilometer converter

CLS

INPUT “Enter the Value of distance in mile=”; m

k = m * 1.6

PRINT “The value of distance in kilometere is=”; k

END