I can't make application that will find The lowest common denominator and the greatest common divisor for n numbers. So basicly, application must take all numbers someone input then find the greatest common divisor and the lowest common denominator for all those numbers. How can I something like that. Also, can someone explain me how to solve this problem:
I tried to take all the numbers someone input but application stop working for some reason and I don't know why.
c Code:
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int n[100]; int i; int numbers; scanf("%d", &numbers); for(i=0;i=n-1;i++) { n[i] = scanf("%d",&n[i]); } for (i=0;i=n-1;i++) { } system("PAUSE"); return 0; }