Friday, October 25, 2019

QBasic to display 1,22,333,4444,55555

CLS
FOR I = 1 To 5
FOR J = 1 To I
PRINT I;

NEXT J
PRINT
NEXT I
END

QBasic to display 1,12,123,1234,12345

CLS
FOR I = 1 To 5
FOR J=  1 To I
PRINT J;
NEXT J

PRINT 
NEXT I
END

QBasic to display 5,10,15,20....10th term

CLS
A=5
FOR I=1 TO 10
PRINT A
A=A+5
NEXT I
END

QBasic to display 1,4,9,16....10th term

CLS
FOR I=1 TO 10
PRINT  I^2
NEXT I 
END

QBasic to display 1,1,2,3,5,8....10th term

CLS
A = 1

B = 1
FOR I = 1 To 10
C = A + B
A = B
B = C
NEXT I
END

QBasic to display multiplication table

CLS
INPUT "Enter any number"; N
FOR I = 1 TO 10
PRINT N; " X " ; I ; " = " ; N * I
NEXT I
END

QBasic to display factorial

CLS
INPUT "Enter any number";N
F = 1
FOR I = 1 To N
F = F * I
NEXT I
PRINT "Factorial number";F
END

QBasic to display factor

CLS 
INPUT "Enter any number";N
FOR I = 1 To N
IF N MOD I = 0 THEN PRINT I
NEXT I
END

QBasic to dislpay prime or composite

CLS
INPUT "ENTER ANY NUMBER"; N
C = 0
FOR I = 1 TO N
IF N MOD I = 0 THEN C = C + 1
NEXT I
IF C = 2 THEN
PRINT N; "IS PRIME NUMBER"
ELSE
PRINT N; "IS COMPOSITE NUMBER"
END IF
END

QBasic to dislpay armstrong or not

CLS
INPUT "Enter a number"; N
A = N

S = 0
WHILE N <> 0

R = N MOD 10
S = S + R ^ 3
N = N \ 10
WEND
IF A= S THEN
PRINT "It is armstrong number";
ELSE
PRINT "It is not armstrong number";
END IF
END

QBasic to find palindrome or not

CLS
INPUT "Enter any number"; N
A = N
S = 0
WHILE N <> 0
R = N MOD 10
S = S * 10 + R
N = N \ 10
WEND
IF A = S THEN
PRINT"the given number is palindrome"
ELSE
PRINT"the given number is not palindrome"
END IF

END

QBasic to find reverse

CLS
INPUT "Enter any number"; N
S = 0
WHILE N <> 0
R = N MOD 10
S = S * 10 + R
N = N \ 10
WEND
PRINT "Reversed digits is "; S
END

QBasic to display product of digit

CLS
INPUT "ENTER ANY NUMBER"; N
P = 1
WHILE N < > 0
R = N MOD 10
P = P * R
N = N \ 10
WEND
PRINT "PRODUCT OF DIGITS"; P
END

QBasic to display sum of digit

CLS
INPUT"Enter any number";N
S=0
WHILE N<>10
R=N MOD 10
S=S+R
N=N\10
WEND
PRINT"Sum of digits";S
END

QBasic to display greater among three number

CLS
INPUT"Enter any number";N
IF A>B and B>C THEN
PRINT"Greater number is";A
ELSE IF B>A and B>C THEN
PRINT"Greater number is";B
ELSE
PRINT"Greater number is";C
END IF 
END

QBasic to dislpay odd or even

CLS
INPUT"Enter any number"N
IF N MOD 2=0 THEN
PRINT"The given number is even"
ELSE
PRINT"The given number is odd"
END IF
END

Thursday, October 24, 2019

QBasic to dislpay positive,Negative or Zero

CLS
INPUT"Enter any number";N
IF N=0 THEN
PRINT"Given number is positive"
ELSE IF N<0 THEN
PRINT"Given number is negative"
ELSE
PRINT"Given number is zero"
END IF
END

QBasic to find volume of cylinder

CLS
IMPUT"Enter radius";r
INPUT"Enter height";h
V=22/7*r^2*h
PRINT"Volume of cylinder=";V
END

QBasic to find volume of cube

CLS
INPUT"Enter length";L
V=L^3
PRINT"Volume of cube=";V
END

Monday, October 7, 2019

QBasic to find volume of box

CLS
INPUT"Enter length";L
INPUT"Enter breadth";B
INPUT"Enter height";H
V=L*B*H
PRINT"Volume of box";V
END

Sunday, October 6, 2019

Monday, September 2, 2019

my father (2019)

                           My Father

One of the greatest titles in the world is parent, and one of the biggest blessings in the world is to have parents to call mother and father.And I am going to tell about my  father.His name is Birendra rana magar.
He is a pharmacist.He like helping people in need.He is very hard worker.He likes being healthy.He even go to morning walk at early 5 o'clock.He also suggest me to be healthy.He is the oldest one in my family after my grand mother.My father is my role model. He is the person who I wish to become like.He has all the qualities that I find are the ideal qualities in a person.My father is my teacher and my friend. He teaches me to do many interesting things.He is disciplined and punctual. He is always on time for his work.He expects me also to be that way. He is strict with me and wants me to be on time at school and punctual with my school work.My parents are my half heart.Half is my mother ad half father.I love them very much.

Sunday, June 2, 2019

1 day with police

Hi I am sohendra and I am going to share the experience about 1 day with police.
We went to school at regular time.2076/2/16.There were two police in our school.Sir called us out of the class.Then police and sir gave us some information. The police told places where we were going.We were going to police head quater which was located in naxal then to dog training camp.We left school between 10 to 10:45.We went there in our school bus.Our sir told not to make noise and be in discipline.When we reached police head quater then went inside in line.Then we were taken to a class.Then DSP entered in class.DSP showed us many videos related to cyber crime and others in  video projector.
Picture in the class with DSP

He gave us many ideas about safety from cyber crime and other.The class was about 2 hours.Class was very information full.After class we were served with tea and biscuits.After the tea break we went to control room.In control room there were many computers.In computers there were all footages of cc camera from all over Kathmandu.
Pic of police sowing us camera footage.

Pic of moniter of control room.

ofter 30 minutes in control room we went to dog training camp in our bus again.In camp there were many dogs who were trained.A police officer gave some ideas about the types of dogs they trained there.Types are÷
1) murderer catching dogs
2) Bomb Finding dogs
3) Drugs finding dogs
4)Thives catching dogs

The dogs were trained very perfectly.They showed us practically what dogs do.Then we walked in line and saw a dogs they had.They also had horses.Then we moved for school at like 2:45 .We arrive at school at 3 o'clock.Then sir told us to post in blog that you just read thank you that was my 1 day with police hope you liked it .


Pic at dog training camp.

Pic at police head quater.

Thursday, May 16, 2019

Experience on drama

                   Aadhiko manuram nritya                       
We the students of grade 8, 9 and 10 along with some teachers went to see the drama on 9th May.  The day was Thursday. This drama was really a motivational drama for students because it was based on the student life.
 

All the performer performed their 
character very well. The name of that drama is "आंधिको मनोरम नृत्य" It was the drama based on student's life which is happening in our day to day life. The main character of the drama was of the girl name 'Mishim'. From that drama we all students learned alot.  It was also about we should not be engage in bad activities,  not fall in love, save the prestige of our family. The drama showed how a student grows up with their friends which may lead to a wrong or right path which is just the beginning of the troubles. The troubles continue as students enter adolescence where they mixed their emotions and mood swings ever once a while. They feel the pressure of studies and the worries of nobody understanding extremely at this age and might turn depressed towards gadgets, drugs, smoking etc and spoil their hole life. to It was all about the problems that we are able to see in this stage known as teenage.This drama was really related me and many of our friend that in this age we had a lot of question in our mind, we wearied  without any reason and this is all because of our adolescence stage. In, this age we must be careful and we should share every thing to our parents so that they can give us solution of every problem.



I came to knew different things that we should not do in our student life. Hope as I learned all the students too learned what the drama wants to show.I have really learned alot from it. I learned that if we are going in bad company we should avoid them all and we should do the things that makes our future bright not the things that make our future dark.We should not only say friends friends only because someday that friends can show us the wrong path, which we are thinking right. 

Radio wave

 Radio wave     is an electromagnetic wave of a frequency between about   10 4  and 10 11  or 10 12  Hz , as used for long distance communic...