academics, personality development
Tuesday, November 30, 2010
GCD OF GIVEN TWO NOS
//sample i/p:15 20
//sample o/p:5
void main()
{
int rem,num1,num2;
printf("enter the two nos);
scanf("%d%d",&num1,&num2);
rem=num2%num1;
while(rem)
{
}
printf("%d",num1);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment