Generation

generate functionFri, 23 Jun 2023

Dame un código completo con el ciclo For que TENGA UN CASE CON 4 OPCIONES 1. FOR EN DECREMENTO INICIANDO DESDE 50 Y VAYA BAJANDO DE 6 EN 6 HASTA 48 2. FOR EN INCREMENTO INICIANDO DE 100 INCREMENTANDO DE 4 EN 4 HASTA EL 100 3. FOR CON NUMEROS PARES QUE MUESTRE LOS NUMEROS PARES DE 120 AL 780 4. FOR CON NUMEROS PRIMOS QUE MUESTRE LOS NUMEROS PRIMOS QUE HAY ENTRE 100 Y 5000

#include <iostream> #include <cstdlib> #include <stdlib.h> #include <time.h> #include <conio.h> #include <string.h> #include <string> #include <sstream> #include <windows.h> #include <math.h> using namespace std; void opcion1() { for(int i = 50; i >= 48; i -= 6) { cout << i << endl; } } void opcion2() { for(int i = 100; i <= 100; i += 4) { cout << i << endl; } } void opcion3() { for(int i = 120; i <= 780; i++) { if(i % 2 == 0) { cout << i << endl; } } } bool esPrimo(int numero) { int contador

Want to kickstart your project?Use the new AI Studio to create your code