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
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?
I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!
WHAT IS MAIN IMPORTANT THING IN SOFTWARE?
details description on this mantis? who is founder of this mantis?
in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?
Find out the roles which gives access to all tables in SAP? Thanks in advance.
could u please also write an example of a code that involves instances from an abstract class just as u did for interfaces because u said it could also work which i really doubt. thanks
Explain with examples any 2 features of OOPS.
WHat is execution in manual testing and when will we start execution and what language we use in execution
Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance
is it possible to learn sap from book without any tutorial. if yes please mention the beginner,s book of sap and also make your valuable advice for self study of sap .
THERE ARE 4 SOURCE FILES WHICH CONTAINS SAME METADATA CREATE A TARGET THAT SHOULD DISPLAY THE FILE NAME ALONG WITH THE RECORD PLEASE SEND THE ANSWERFOR THIS QUESTION WITH MAPPING
what is meant by life cycle of a business
What's the difference b/w Table & Templete in Smartform?
Write a program to reverse a number?