Faktöriyel Hesaplama

#include <cstdlib>
#include <iostream>
#include <math.h>
using namespace std;

int main(void)
{
    double a=1, n, result=1;
    cout << “Faktoriyelini Almak Istediginiz Sayi: “;
    cin >> n;
    while (a <= n){
          result =result* a;
          a++;}
    cout << n << ” Sayisinin
Devamını Okuyun

Zar Atma

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

void zarAt(void);
void sonucYaz(void);
int zar;
int sonuc[6] = {0};
int main(int argc, char *argv[])
{
printf(“————————————————–\n”);
printf(“|          100 DEFA ZAR ATALIM                   |\n”);
printf(“————————————————–\n\n\n”);
zarAt();
system(“PAUSE”);
return 0;
}

void zarAt(void)
{
int i;
Devamını Okuyun