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!
Yeh Rishta Kya Kehlata Hai - 20 Aug 2025 EDT
Yeh Rishta Kya Kehlata Hai - 19 Aug 2025 EDT
DAHII HANDI 19.8
Shradhanjali to Mr Anshuman Raizada
Disaster Monday: War 2 falls 75% to Rs. 6 cr, shows cancelled
IMMORAL CRINGE 20.8
Back to the pavilion when??
Did i heard right ???????
Faissal Khan's Shocking Revelations
Savage Katrina!!
So the roles are officially switched…
Aishwarya Rai Bachchan in a new advertisement for #Loreal
I find it unprofessional
Rashmika Mandanna & Vijay Devarakonda India Day New York parade
Why is this show so PG? S1 was more 15 Rated or nowadays A.
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, 😊