There are two types of inverse numbers in this context: additive and multiplicative.
An additive inverse number is a number that's had its sign flipped: positive becomes negative, and negative becomes positive. The PHP code for this would be:
$result=-$number;
A multiplicative inverse number is a number that's been divided into 1. So 5 becomes 1/5, and 1/5 becomes 1/1/5, or 5. The PHP code for this would be:
$result=1/$number;
All the smallest factors of a number must be its smallest factor, which for any number is 1, so: loop loop loop print "Enter an integer number: ": input n until num(n) do print "Please enter a number" repeat until n = int(n) do print "Please enter an integer" repeat print "Smallest factor of ":n:" is 1" repeat
WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL
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
Try the triangle program on a search engine. Replace numbers with stars and that should do the trick
'*** Choose which specific times tables number to print out... intTablesNo%=6 '*** (CL)ear the Output (S)creen... CLS '*** Start of FOR/NEXT loop block statement/loop counts upwards from 1 to 12... FOR intTimesNo%=1 TO 12 '*** PRINT out each times tables number sum... PRINT intTimesNo%; " X "; intTablesNo%; " = "; intTimesNo%*intTablesNo% '*** end of FOR/NEXT loop block statement... NEXT '*** END of program/halt program code execution... END '*** NOTE: Once you understand how the above program works...; ' then, you can safely DELETE all of the explanatory comment statement lines... ' each of which begin with a single apostrophe: ('). -Thanks! ;-)
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.
write a program to print A to Z on screen in c?
echo 'print a pattern'
write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
The multiplicative inverse of a number "n", is another number, which you can write as "1/n", defined such that the number, times its multiplicative inverse, is equal to 1.
Sp[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Answer]]ell chec[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&action=edit&section=new|Answer it!]]k your answe[[Q/Discuss:Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Disc]][[help/answering questions|guidelin]]Spell check your answeresussionr[[help/signing in|full benefits]] Save C[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 ]][[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&action=edit&section=new|Answering 'Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix?']]matrix?ancel[[Q/How many animals are in West Texas|How many animals are in West Texas?]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]] Service workshop?[[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]]More Q&A
write a program to print the series 1/12+1/22+.........+1/n2 ?
One way to do this is to convert the number to a String, then use the corresponding String method to find out the length of the String.
This is a directive, not a question.
good morning
Yes.