40 by arhiplupuzait

VIEWS: 21 PAGES: 1

									#include <fstream.h> int main(){ ifstream f("numere.in"); int n,a[100],i; f>>n>>a[1]>>a[2]; int q=a[2]/a[1]; i=3; while(i<=n){ f>>a[i]; if(a[i]/a[i-1]!=q){ cout<<"NU"; return 0; } else i++; } cout<<"DA"; return 0; }


								
To top