// july21ex3.cpp : Defines the entry point for the console application.
//  Here is a program.  What is its output????????????

#include "stdafx.h"

int main(int argc, char* argv[])
{
	int mynum=-1, term=4;

	while (term<50) {

            printf("%d \n", term);
			term = term * 2 - mynum;
			mynum = mynum * -1;

	}


	return 0;
}