The first five whole numbers are: 01234. The first five natural numbers are: 12345.
The sum of the first 100 natural numbers is 5,001.
271 of the first 1000 natural numbers contain at least one digit 5. That is 27.1 % of them.
50.5
271
It depends on the script language you are using. In the Korn shell, you can say: echo -n "Enter the first number: " read first echo -n "Enter the second number: " read second let third=$first+$second echo The answer is $third
Well the question is not particularly specific. I assume that we are talking about shell and in this example I would refer to "bash" shell. #!/bin/bash echo $1 this simple script will print first parameter passed to it.
Shell program to find LCM and hcf of two no.s tput clear echo "Enter first no" read a echo "Enter 2nd no" read b p= 'expr $a \* $b' while [$b -ne 0] do r= 'expr $a % $b' a=$b b=$r done LCM = 'expr $p / $a' echo "LCM = $LCM" echo "Hcf = $a"
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.
2520 is the smallest multiple of of first ten natural numbers.
The sum of the first 50 natural numbers is 1,251.
1 Sum of first n natural numbers = n(n+1)2[Formula.]2 Arthmetic mean of first n natural numbers = Sum of the numbers n[Formula.]3 = n(n+1)2n = n+124 So, the Arthmetic mean of first n natural numbers = n+12
The first argument is always $1. It may or may not exist, but is always referred to by $1.
Good question. 1+2+3+4+5=155=15 So the product of first five natural numbers is fifteen Natural numbers starts from one So we add first five natural numbers and get the right answer is fifteen
The sum of the first 200 natural numbers is 20,001.
123456789101112131415.
The sum of the first 10 natural numbers is 51, with an average of 5.1