Hey guys.... im taking this programming course in college... and i actually need some help............ i need to make a program using C++ to print prime numbers...............
plzzz help!!!!
thanks in advance!
Page
of
1Hey guys.... im taking this programming course in college... and i actually need some help............ i need to make a program using C++ to print prime numbers...............
plzzz help!!!!
thanks in advance!
VANIs TRAUMA 13.2
ANGER KICKS 12.2
Here to watch this show s downfall
🏏ICC Men's T20 World Cup 2026:M19: AUS vs ZIM, Colombo 🏏
The mother of all get togethers
🏏ICC Men's T20 World Cup 2026: M21: NED vs USA at Chennai🏏
Why is Karan doing so much ass-licking of Rani!!?
Udit Narayan's first wife, Ranjana, accuses him of removing her uterus
All 3 Mardaani films are successful :BOI. Rani holds record now!
🏏ICC Men's T20 World Cup 2026:M20: CAN vs UAE, Delhi 🏏
Most handsome naag
A Melodious Whisper to the Horizon
Zee Cine Awards 2026 discussion thread- nominations out
Snippet of Feral Arjun Rawte
Originally posted by: pinka_anshu
/*prime number check between 1 to a range , range will be enter by user*/
#include<iostream.h>
#include<conio.h>
void main()
{
int num;
clrscr();
cout<<"enter value till to be check";
cin>>num;/*all prime number will be chacke between 1 to num*/
if( num!=1)
{
for(int i=2;i<num+1;i++)
{
int flag=0;
for(int j=2;j<i;j++)
{ if (i%j==0)
flag=1;
}
if(flag==0)
cout<<"\n"<< i; /* print the prime number between 1 to num*/
}
}
else
cout<< num<<"is prime number";
getch();
}
Originally posted by: AsliiGuy
Wow š
So amazing that you all know this...C++ is hard...Good work, š