Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
Least Common Multiple and Greatest Common Divisor in c
Ken H
11y
1.6k
1
Reply
hi,
input any two positive integers how to seek their Least Common Multiple and Greatest Common Divisor in c.
thank.
#include<stdio>
void main(void)
{
int x,y;
printf("input any two positive integers:");
scanf("%d %d",&x,&y);
/*
...
*/
}
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
the string to extract digits and save to integer array in C
Distortion of Shape while Moving it on a Panned Area