تبلیغات
حل تمرین های c++ - برنامه ا ی بنوسید که کامپیوتر 7 عدد از ورودی دریافت کرده و اعداد اول را در بین 7 عدد وارده شده در خروجی نمایش دهد؟

حل تمرین های c++

#include<iostream.h>
#include<iomanip>
#include<conio.h>
int main()
{
int j,i,n,t;
for(i=1;i<=7;i++)
{
      cout<<"enter number :";
       cin>>n;
      
for(j=2;j<=n-1;j++)
        {
                if(n%j==0)
                     {
                        t=0;
                        break;
                       }
                  else
                   t=1;
         }
if(t==1)
  cout<<"n<<is the frist number"<<"\n";
else
cout<<"n<<is not the frist number"<<"\n";
}
getch();
return 0;

}

نظرات() 
hollyragains.hatenablog.com
سه شنبه 17 مرداد 1396 07:32 ق.ظ
Good blog post. I absolutely appreciate this
website. Keep it up!
How do you get taller in a day?
یکشنبه 15 مرداد 1396 04:14 ب.ظ
Heya i'm for the first time here. I came across this board and
I find It really useful & it helped me out a lot.
I hope to give something back and aid others like you aided me.
judebernard.hatenablog.com
یکشنبه 15 مرداد 1396 03:01 ب.ظ
Hey I am so delighted I found your website, I really found you by error,
while I was searching on Yahoo for something else, Anyways I am here now and would just
like to say thanks for a remarkable post and a all
round thrilling blog (I also love the theme/design),
I don't have time to read through it all at the minute but I have bookmarked it and also added in your RSS feeds, so
when I have time I will be back to read a great deal more, Please do keep up the great work.
karenbernard.hatenablog.com
شنبه 14 مرداد 1396 04:59 ب.ظ
Have you ever considered about adding a little bit more than just your articles?
I mean, what you say is important and all. But just
imagine if you added some great photos or videos to give your posts more,
"pop"! Your content is excellent but with images and
videos, this blog could undeniably be one of the greatest in its field.

Fantastic blog!
BHW
دوشنبه 21 فروردین 1396 05:57 ق.ظ
My family members all the time say that I am wasting my time here at web, except I know I am getting familiarity all the time by reading such fastidious content.
manicure
چهارشنبه 16 فروردین 1396 08:18 ق.ظ
When I originally commented I clicked the "Notify me when new comments are added"
checkbox and now each time a comment is added I get several e-mails with the same comment.
Is there any way you can remove people from that service?
Bless you!
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر
  • آخرین پستها

آمار وبلاگ

  • کل بازدید :
  • بازدید امروز :
  • بازدید دیروز :
  • بازدید این ماه :
  • بازدید ماه قبل :
  • تعداد نویسندگان :
  • تعداد کل پست ها :
  • آخرین بازدید :
  • آخرین بروز رسانی :