#include <stdio.h>
#include <stdlib.h>

int main()
{
	float x0, q;
	int k=-1, i=0;

	printf("podaj element poczatkowy ciagu i jego iloraz\nx0=");
	scanf("%f", &x0);
	printf("q=");
	scanf("%f", &q);

	while(k<0)
	{
		printf("podaj ilosc elementow ciagu\n");
		scanf("%d", &k);
	}

	printf("%f\n",x0);

	while(i<k)
	{
		printf("%f\n",x0*q);
		x0=x0*q;
		i=i+1;
	}

   return 0;
}
