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
Chat with our AI personalities
Oh, dude, it's like super simple. You just loop through the numbers 1 to 10 and multiply each one by 5. So, like, you start at 1, multiply by 5, then move to 2, multiply by 5, and so on until you hit 10. Boom, you got yourself the first 10 multiples of 5. Easy peasy lemon squeezy.
To print the first 10 multiples of 5, you can create a simple algorithm using a loop. Start by initializing a variable to store the current multiple as 1. Then, use a loop that iterates 10 times, multiplying 5 by the current multiple and printing the result. Finally, increment the current multiple by 1 in each iteration of the loop to move on to the next multiple. This algorithm will output the first 10 multiples of 5: 5, 10, 15, 20, 25, 30, 35, 40, 45, and 50.
Oh, what a delightful request! To print the first 10 multiples of 5, we simply start with 1 and go up to 10, multiplying each number by 5. Let's create a soothing loop that goes from 1 to 10, and for each number, we'll multiply it by 5 and print the result. Remember, there are no mistakes, just happy little accidents in coding!
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
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; }
enter the number whose digits are to be added num is the given value num=0! k=num%10 sum=sum=k k=num/10 num=k print the sum of the digits