c++ da bir sayının asal çarpanlarını bulma.
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int sayi, i;
cout << " bir sayi giriniz: ";
cin >> sayi;
cout << "carpan " << endl;
cout << sayi << " Sayisinin asal carpanlari: " << endl;
for (i = 2; sayi != 1; i++)
{
if (sayi % i == 0)
{
sayi /= i;
cout << " "<< i<< endl;
i--;
}
}
cout << endl;
system("pause");
return 0;
}
1 Yorum:
This is how my pal Wesley Virgin's biography launches with this SHOCKING AND CONTROVERSIAL VIDEO.
Wesley was in the army-and soon after leaving-he unveiled hidden, "mind control" tactics that the government and others used to get whatever they want.
As it turns out, these are the exact same SECRETS many famous people (notably those who "come out of nothing") and elite business people used to become rich and famous.
You've heard that you utilize only 10% of your brain.
That's mostly because most of your brainpower is UNTAPPED.
Maybe that conversation has even taken place INSIDE your own head... as it did in my good friend Wesley Virgin's head seven years ago, while driving a non-registered, beat-up bucket of a vehicle with a suspended license and $3 on his bank card.
"I'm absolutely fed up with living paycheck to paycheck! When will I finally make it?"
You've taken part in those types of questions, isn't it right?
Your success story is going to be written. All you need is to believe in YOURSELF.
UNLOCK YOUR SECRET BRAINPOWER
Yorum Gönder
Kaydol: Kayıt Yorumları [Atom]
<< Ana Sayfa