aleatorio- programa en c++

Download aleatorio- programa en c++

If you can't read please download the document

Upload: ricardo-chavarry-alvarado

Post on 02-Dec-2015

217 views

Category:

Documents


1 download

TRANSCRIPT

#include "stdafx.h"#include #include #include #include #include using namespace std;int f1(int aleatorio){int x=0;if (aleatorio>=0 && aleatorio=4 && aleatorio=8 && aleatorio=12 && aleatorio=16 && aleatorio=0 && suma=10 && suma=40) return "Reloj";}int _tmain(int argc, _TCHAR* argv[]){ srand((unsigned) time(NULL));int aleatorio;int suma=0;for (int i=0; i