PROGRAM-5.rar

  • PUDN用户
    了解作者
  • C/C++
    开发工具
  • 2KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 2
    下载次数
  • 2011-06-14 00:18
    上传日期
this program is to calculate the fqactorial of a number
PROGRAM-5.rar
  • PROGRAM 5.doc
    19.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/622bb01f15da9b288b8bdad8/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622bb01f15da9b288b8bdad8/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">PROGRAM 5</div><div class="t m0 x2 h4 y3 ff2 fs0 fc0 sc0 ls0 ws0">/*A program to find out the factorial of a number*/</div><div class="t m0 x2 h4 y4 ff2 fs0 fc0 sc0 ls0 ws0">/*Author Sanjai Singh, 22/07/08*/</div><div class="t m0 x2 h4 y5 ff2 fs0 fc0 sc0 ls0 ws0">#include&lt;stdio.h&gt;</div><div class="t m0 x2 h4 y6 ff2 fs0 fc0 sc0 ls0 ws0">#include&lt;conio.h&gt;</div><div class="t m0 x2 h4 y7 ff2 fs0 fc0 sc0 ls0 ws0">main()</div><div class="t m0 x2 h4 y8 ff2 fs0 fc0 sc0 ls0 ws0">{</div><div class="t m0 x2 h4 y9 ff2 fs0 fc0 sc0 ls0 ws0">clrscr();</div><div class="t m0 x2 h4 ya ff2 fs0 fc0 sc0 ls0 ws0">int n,i,fact,factorial=1;</div><div class="t m0 x2 h4 yb ff2 fs0 fc0 sc0 ls0 ws0">printf("Write the no. whose factorial is to be found. ");</div><div class="t m0 x2 h4 yc ff2 fs0 fc0 sc0 ls0 ws0">scanf("%d",&amp;n);</div><div class="t m0 x2 h4 yd ff2 fs0 fc0 sc0 ls0 ws0">for(i=1;i&lt;=n;i++)</div><div class="t m0 x2 h4 ye ff2 fs0 fc0 sc0 ls0 ws0"> {</div><div class="t m0 x2 h4 yf ff2 fs0 fc0 sc0 ls0 ws0"> fact=i*factorial;</div><div class="t m0 x2 h4 y10 ff2 fs0 fc0 sc0 ls0 ws0"> factorial= fact;</div><div class="t m0 x2 h4 y11 ff2 fs0 fc0 sc0 ls0 ws0"> }</div><div class="t m0 x2 h4 y12 ff2 fs0 fc0 sc0 ls0 ws0">printf(" The factorial of the given no. is = %d",factorial);</div><div class="t m0 x2 h4 y13 ff2 fs0 fc0 sc0 ls0 ws0">getch();</div><div class="t m0 x2 h4 y14 ff2 fs0 fc0 sc0 ls0 ws0">}</div><div class="t m0 x2 h4 y15 ff2 fs0 fc0 sc0 ls0 ws0">OUTPUT:</div><div class="t m0 x2 h4 y16 ff2 fs0 fc0 sc0 ls0 ws0">Write the no. whose factorial is to be found.</div><div class="t m0 x2 h4 y17 ff2 fs0 fc0 sc0 ls0 ws0">5</div><div class="t m0 x2 h4 y18 ff2 fs0 fc0 sc0 ls0 ws0">The factorial of the given no. is = 120</div></div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • 1506737.zip
      To repair the taskbar to display the running program, the program is absolutely effective
    • the.rar
      Monitoring program Monitor changes in a file, the file changes in the program
    • timerAlarm1.rar
      THE PROGRAM TIMER ALARM IN THE COMPUTER WITH THE PROGRAM C#
    • CarritoCompra.rar
      Search program on a list of spanish web sites to create the lowest price list of articles. This program uses the JSOUP library on Java. You only need to type your list on a .txt and then the program, ...
    • the-C-program.rar
      the C program first C program books
    • PROGRAM-2.rar
      The program written in fortran is to enable us still study the charge build. it includes the flow chart of the execution of the program
    • TVProgram-开源
      显示捷克和一些外国电视节目的程序。 包括电视,如 CT1、CT2、Nova、Prima、BBC、CNN、Discovery。
    • include.rar
      this program is the particular content of c programming language that contains the source code of FILE. The output of this program helps to find the location of this program
    • 375440.rar
      Stream on the input and output of the program, the program illustrates the way of flow in detail
    • 迷宫求解问题.zip
      一次软件作业,迷宫的求解问题,有需要的可以直接下载,(c语言版)