First of all, there is no need for 3 loops, second, think if so many integers are really necessary.

[QUOTE=meyumi_lelouch;1631165]I'm sorry, I was busy editing the shortened code that I didn't knew there were new replies posted.

I did what Nuclear said in this post: [URL="

I see you have a while loop here already, wrap everything after the while loop with { }. It should be like this, notice that i start looping only from the "Enter choice" line so the screen would not get flooded everytime i make a choice, but you can start the loop a bit higher if you want to see all of the choices again, heres the code :

[CODE]#include "stdafx.h"

include "iostream"
include "stdio.h"
include "conio.h"

using namespace std;

int main()
{
int choice,desc;

cout<<"\t\t\t\tPhilippine National Heroes\n\n";
cout<<"[1]Dr.Jose Rizal\n";
cout<<"[2]Andres Bonifacio\n";
cout<<"[3]General Gregorio Del Pilar\n";
cout<<"[4]General Emilio Aguinaldo\n";
cout<<"[5]Apolinario Mabini\n";
cout<<"[6]GOMBURZA\n";
cout<<"[7]Trece Martirez\n";
cout<<"[8]Emilio Jacinto\n";
cout<<"[9]General Antonio Luna\n";
cout<<"[10]Melchora Aquino(Tandang Sora)\n";
cout<<"[11]Graciano Lopez Jaena\n";
cout<<"[12]Panday Pira\n";
cout<<"[13]Mariano Ponce\n";
cout<<"[14]Gregoria De Jesus\n";
cout<<"[15]Fernando Ma. Guerrero\n";
cout<<"[16]Felipe Agoncillo\n";
cout<<"[17]Rafael Palma\n";
cout<<"[18]Juan Luna\n";
cout<<"[19]Marcelo H. Del Pilar\n";
cout<<"[20]Leona Florentino\n";
cout<<"[21]Pedro Paterno\n";
cout<<"[22]Isabelo Delos Reyes\n";
cout<<"[23]Artemio Ricarte\n";
cout<<"[24]Jose Palma\n";
cout<<"[25]Lakandola\n";
cout<<"[26]Rajah Soliman\n";
cout<<"[27]Leonor Rivera\n";
cout<<"[28]Marcela Marino Agoncillo\n";
cout<<"[29]Galicano Apacible\n";
cout<<"[30]Jose Ma. Panganiban\n";
cout<<"[31]Diego Silang\n";
cout<<"[32]Maria Josefa Gabriela Silang\n";
cout<<"[33]Lapu-Lapu\n";
cout<<"[34]Francisco Dagohoy\n";
cout<<"[35]Epifanio Delos Santos\n";
cout<<"[36]Francisco Baltazar\n";
cout<<"[37]Teresa Magbanua\n";
cout<<"[38]Trinidad Tecson\n";
cout<<"[39]Agueda Esteban\n";
cout<<"[40]Marina Dizon\n";
cout<<"[41]General Francisco Makabulos\n";
cout<<"[42]Julian Felipe\n";

while(true)
{
cout<<"Enter the number of your Choice:\t";
cin>>choice;

switch(choice)
{
case 1: cout<<"\t\t\t\tJOSE RIZAL\n\n";
        cout<<"(June 19, 1861 to December 30, 1896, Bagumbayan), was a Filipino polymath, patriot and the most prominent advocate for reform in the Philippines during the Spanish colonial era. He is regarded as the foremost Filipino patriot and is listed as one of the national heroes of the Philippines by ...

You mean after the user chooses one hero and after that he should be able to choose another hero, right? If yes then this should work for you :

[CODE]#include "stdafx.h"

include "iostream"
include "stdio.h"
include "conio.h"

using namespace std;

int main()
{
int choice,desc;
char repeat;

while(true)
{

cout<<"\t\t\t\tPhilippine National Heroes\n\n";
cout<<"[1]Dr.Jose Rizal\n";
cout<<"[2]Andres Bonifacio\n";
cout<<"[3]General Gregorio Del Pilar\n";

cout<<"Enter the number of your Choice:\t";
cin>>choice;

switch(choice)
{
case 1: cout<<"\t\t\t\tJOSE RIZAL\n\n";
cout<<"(June 19, 1861 to December 30, 1896, Bagumbayan), was a Filipino polymath, patriot and the most prominent advocate for reform in the Philippines during the Spanish colonial era.";
break;

case 2: cout<<"\t\t\t\tANDRES BONIFACIO\n\n";
cout<<"(November 30, 1863 to May 10, 1897) was a Filipino nationalist and revolutionary.";
break;

case 3: cout<<"\t\t\t\tGENERAL GREGORIO DEL PILAR\n\n";
cout<<" (November 14, 1875—December 2, 1899) was one of the youngest generals in the Philippine Revolutionary Forces during the Philippine Revolution and the Philippine-American War.";
break;

case 4: cout<<"\t\t\t\tGENERAL EMILIO AGUINALDO\n\n";
cout<<"(March 22, 1869 – February 6, 1964) was a Filipino general, politician, and independence leader." ;
break;

default : cout<<"\nInvalid Choice!";
}

cout << "\n";
}

getch();
return 0;
}
[/CODE]

By the way, you can modify the While loop how ever you like, right now i simply made it to loop for infinity

Well if you only want to show the first 12 numbers then this should work:

[CODE]#include<iostream>

include<cstdlib>
include<conio.h>

using namespace std;
int main()
{
int i,j=0;
cout<<"1 ";
for(i=1;i<=55 && j < 11;i++)
{
if(i%2==0||i%3==0||i%5==0)
{
j++;

cout << i << " ";
}
}

getch();
return 0;
}[/CODE]

Hm, not sure if i understand what are you talking about, are you saying that the program just ends after the 12th loop or something else, please be more specific.