Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  dsf
Language: C/C++
Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
int num;
int num1,temp;
     printf("enter a num\n");
     scanf("%d",&num);
     printf("enter a num\n");
     scanf("%d",&num1);

     while((num!=0)&&(num!=1))
     {
     if(num>num1)
     {
     printf("%d",num1);
     break;
     }
     num=num-num1;
     }
     
}
          
Comments: