mahsa sh
چهارشنبه 22 آبان 1392, 21:51 عصر
سلام من مبتدی ام مشکله این کد چیه که اجرا نمیشه؟:متفکر::افسرده:
// tam4.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int i,n;
cout<<"n=?" ;
cin>>n;
long fact(n);
double f=0;
f=f*i;
for(i=1;i<=n;i++)
{
cout<<"f="<<f;
}
return 0;
}
// tam4.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int i,n;
cout<<"n=?" ;
cin>>n;
long fact(n);
double f=0;
f=f*i;
for(i=1;i<=n;i++)
{
cout<<"f="<<f;
}
return 0;
}