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
how to convert hashmap to arraylist with iteration
what is the diffrence between software and hardware language?
write a sql qwery which include joining of two tables 4 marks mainframe
Is class is a abstract datatype in java?
What is web.configuration? how is it work? & wht is use this?
What is the difference between WebIntelligence and Designer in creating universes?
Difference between HTML and DHTML?
Need guidewire related Documents(Interview Question/Tips/Best Practice/Dumps)
Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?
Given: coordinates of rectangle-> left bottom and right top points. the rectangles create a hole.Find the maximum area of the hole. eg. 4 rectangles create a hole in between. find its area.
how do i add a column dynamically in a table by using java application?
I'm new to ABAP. What is Module pool in SAP?
kindly send interview materials
I want to insert date in the form of yyyy-mm-dd... if any changes happen while inserting date format want to show error meg...any one can solve this..??
how do we provide security for web services