The first ten odd numbers
odd
The average of the first ten prime numbers is 12.9.
101
I'll do the first ten. 1, 3, 5, 7, 9, 11, 13, 15, 17, 19 The next ten are found by continuing to add two until you get to 39.
100
The sum of the first 100 odd numbers (1 through 199) is 10000 (ten thou)
The first ten odd numbers
odd
38.5
The average of the first ten prime numbers is 12.9.
That's impossible. Adding up an odd number of odd numbers will give an answer that is an odd number. 50 is an even number. So adding up 5(5 is an odd number) odd numbers will not give 50, an even number.
There are no didgits. None! They do not exist! There are ten digits 0, 1, ... 9 which represent the first ten numbers. Beyond that, numbers are represented using the same ten digits but this is done using the idea of place values.
You can work this out by realizing that the sum of the first x odd numbers is equal to x2.Consider the following examples:The first three odd numbers: 1 + 3 + 5 = 9The first five odd numbers: 1 + 3 + 5 + 7 + 9 = 25The first ten odd numbers: 1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 + 17 + 19 = 100In each case, the number of odds you're adding together is the square root of their sum. This means that the first 1500 consecutive odd numbers have a sum of 15002, which equals 2250000, or two and a quarter million.
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
Square numbers 1, 4, 9, 16, 25, 36, 49, 64, 81, 100
0 is the ten's digit of the first odd number.