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
Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com
What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?
what are the differences between CONS, LIST, and APPEND
What is autocall macro and how to create autocall macro? what is the use of it?
what is best way to create a Thread class & why?
How to get the index of the clicked field in reports in ABAP?
can we use commit,rollback in triggers and how?
Which method protects back button to retrieve old value from previous page in Struts.
Which design patterns have you used?
what do u mean by tagging
what is diff bet ref variable & instance of class
why we use abstract word in abstract window toolkit in java language.
What are the Short cut Keys of Tally ERP?
How to call dll API sub routine in VB Form.
what is meaning of MDM in sap?let me know that meaning