This article – Important MS Small Basic Programs for Class 6 provides programs in MS Small basic. Here we go!

## Important MS Small Basic Programs for Class 6

• Ask the user to enter the name and age details and print them.
``````TextWindow.Write("Enter your name:")
TextWindow.Write("Enter you age:")
TextWindow.WriteLine("Welcome "+ nm)

Observe the screen shot attached with output:

• Ask user to collect the information from the student and display the total marks and compute percentage.
``````TextWindow.Write("Enter the roll no. of student:")
TextWindow.Write("Enter the name of student:")
TextWindow.Write("Enter the Marks of English:")
TextWindow.Write("Enter the Marks of Hindi:")
TextWindow.Write("Enter the Marks of Maths:")
TextWindow.Write("Enter the Marks of Science:")
TextWindow.Write("Enter the Marks of Social Science:")
tot=eng+hin+mat+sci+ss
TextWindow.WriteLine("Total Marks:" + tot)
per=tot/5
TextWindow.WriteLine("Percentage:" +per)
``````
• Write a program to perform basic arithmetic operations in small basic using 2 numbers.
``````TextWindow.Write("Enter the roll no. of student:")
TextWindow.Write("Enter the roll no. of student:")
su = n1-n2
mu = n1*n2
di = n1/n2
TextWindow.Writeline("Subtraction:"+su)
TextWindow.Writeline("Multiplication:"+mu)
TextWindow.Writeline("Div:"+di)``````
• Write a program to compute simple interest.
``````TextWindow.Write("Enter Principal Amount:")
TextWindow.Write("Enter rate of interest:")
TextWindow.Write("Enter rate of interest:")
si=p*r*n/100
TextWindow.Write("Simple Interest is:"+si)``````
• Write a small basic program to compute the area of a circle.
``````TextWindow.Write("Enter Principal Amount:")
pie=3.14
area = pierr
TextWindow.Write("Area of circle")``````
1. Aaradhya Jahagirdar says:
1. tutorialaicsip says: