Step1 : Start
Step2 : Input N=5
Step3 : Tnput T=1 to 10
Step4 : Print M=N*T
Step5 : End
Where T is table and N is
Sum = 0 For N = 1 to 10 Sum = Sum + 2*N Next N Print Sum
Cls print the multiples tables of 1 to 5 for x=1 to 5 for y=1 to 10 print x;"*";y;"=";x*y next y print print next x end
In QBasic, you can display a new line using the PRINT statement. To create a new line, you can simply use an empty PRINT statement. Here’s a simple example: PRINT "This is the first line." PRINT ' This will create a new line. PRINT "This is the third line." This program will display the first line, then move to a new line, followed by the third line.
For N = 1 to 10 Print 2 * N Next N
#include<stdio.h> int main () { printf ("2 4 6 8 10 12 14 16 18 20"); return 0; }
Algorithm: multiples input: two positive integers, m and n output: print first n multiples of m i = m; for j = 1 to n print i i = i + m; next j
let x = 3 for count = 1 to 20 print x let x = x + 3 next count
2+4
int firstNumber,secondNumber for(firstNumber = min; firstNumber <= max; firstNumber++); { for(secondNumber = min; secondNumber <=max; secondNumber++); int result firstNumber * secondNumber; }
3
Start print "the sum of all even numbers is infinite" end
Sum = 0 For N = 1 to 10 Sum = Sum + 2*N Next N Print Sum
read num1 read num2 sum = num1 num2 print highest value
By using Depth First Search or Breadth First search Tree traversal algorithm we can print data in Binary search tree.
start read pie area circum print area print circum stop
Cls print the multiples tables of 1 to 5 for x=1 to 5 for y=1 to 10 print x;"*";y;"=";x*y next y print print next x end