f(123) = 1! + 2! + 3! .I wrote a code for this type of function to work, have a look at it. My code is not giving desired result

后端 未结 0 858
陌清茗
陌清茗 2020-12-28 17:41
#include 
#include 
using namespace std;

int main()
{
    int a=123,c,h=0,fact=1,sum=0;

    for(int i=1;a>10;i++)
    {
        a/=         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题