10 cls 20 end 30 next 40 print
You'll need 3 variables for this, here's a pseudo code for swapping values of 2 variables.ALGORITHM SWAPvar1 = 10var2 = 20temp = 0temp = var1 "temp = 10"var1 = var2 "var1 = 20, originally 10"var2 = temp "var2 = 10, originally 20"END SWAP
if (length>=10 && length<=20) { // length is between 10 and 20, inclusive... }
10 for t = 1 to 50 20 input a 30 c = c + a 40 next t 50 print c
import java.io.*; public class sum{ public static void main(String[] args) { try{ System.out.print("Enter 10 numbers: "); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int[] input=new int[10]; int a,total=0; for(a=0;a<10;a++) { System.out.println(); input[a]=Integer.parseInt(br.readLine()); } for(a=0;a<10;a++) { total+=input[a]; } System.out.println("The sum of the numbers is "+total); }catch(Exception e) { e.printStackTrace(); } } }
Country code +20 is Egypt, and a number beginning with +20 10 is a Vodafone mobile. In 2011, mobile numbers in Egypt were changed. Numbers beginning with +20 10 changed to +20 100 +20 16 changed to +20 106 +20 19 changed to +20 109 +20 151 changed to +20 101 with 7 digits following the mobile code.
You can get the difference on your calculator, or in Excel. In Excel, the expression would be: = -10 - (-20) As to the "why", look at the numbers on a number line. That should help you visualize the situation.
The answer is 20C10 which is 20!/[10!(20-10)!] = 184756
Let's use a number line to help us with this question. <---------0---------> We know positive numbers get bigger as they go ------> this way, right? <--------0 1 2 3 4 5 ...... -----> If we look at negative numbers on the number line ... < -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 > Although the NUMBER itself gets bigger as it goes to the left <------ the value of the number actually gets smaller! Think of it this way, is it better to owe someone 5 dollars or 10 dollars? If you owe 5 dollars, you're better off than if you owed 10 dollars to your friend. You don't have to give them as much, so you're happier. Just remember, negative numbers are the opposite of positive numbers. They behave in the opposite way that positive numbers do. On the number line, the value the numbers get bigger as you go ----> and smaller as you go <----. To answer your question, put -20 and -10 on the number line! < -20 -15 -10 -5 0 5 10 15 20 > (I'll use multiples of 5, to make it easier to read) Is -20 to the left, or to the right or -10 on the number line? That's correct, -20 is to the LEFT of -10 on the line. So what does this tell us, which number is greater in value? Are you better off owing 20 dollars, or owing 10....? -20 < -10 or -10 > - 20
set of odd numbers divisible by 2 between 10 and 20
There are 7 composite numbers from 10 to 20 (including the boundaries):10, 12, 14, 15, 16, 18 and 20
10 and 20
10 and 20 are composite numbers, not prime numbers. The prime factorization of 10 is 2 x 5. The prime factorization of 20 is 2 x 2 x 5.
10, 20
The composite numbers between 10 and 20 are 12, 14, 15, 16 and 18.
10,12,14,15,16,18,20
The numbers are 30 and 20.