Write a Pseudo Code to fins the LCM of two given numbers
Answer Posted / shailendra
#include <iostream>
using namespace std;
int main()
{
int x,y,z;
cout<<"Enter First Integer:";
cin>>x;
cout<<"\nEnter Second Integer:";
cin>>y;
z=1;
while(x/z==1 && y/z==1)
{
z=x/y;
cout<<"The LCM of Both Numbers is:"<<z;
}
return 0;
}
Is This Answer Correct ? | 8 Yes | 69 No |
Post New Answer View All Answers
5. How do you round the addition or subtraction of two numbers in assembler?
iam confused among testing ,.net and java. can anybody help me.
what is the meaning of without standing arrears?
what is the use MDM(Master Data Management)and meaning
i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared
how do i create my own exception class which will restrict IO exception?
we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
what is the difference between read the data from table and infotype
what is difference between kpo and it industry? that is in terms of work, package etc
What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?
Explain what is OOPS and its concepts?
Bonjour, svp je veut voir comment envoyer un mail en java et comment changer le droit d'accé d'un fichier en java: de lecture en lecture/écriture et merci d'avance ;)
can we extend a class having only one parameterised constructor.Suggest the process to do it.
Which method protects back button to retrieve old value from previous page in Struts.