Group Study

Friday, 19 February 2021

find a value of factorial for a given number

#include main() { int n,i,fact=1; printf("Enter a number:"); scanf("%d",&n); for(i=1;i<=n;i++) { fact=fact*i; } printf("Factorial=%d",fact); return 0; }
Posted by Group Study at 17:51
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: CSE-112 Lab report program

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Group Study
View my complete profile

Blog Archive

  • ▼  2021 (10)
    • ▼  February (10)
      • create a fibonacci series using function
      • find a value of a quadric equation
      • sort the given element using quick sort
      • sort the given element using selection sort
      • sort the given element using bubble sort
      • find a value of factorial for a given number
      • find a element using binary search
      • find a value using Linear search
      • find the sum of element in a array
      • find largest element in array
  • ►  2019 (45)
    • ►  October (1)
    • ►  August (3)
    • ►  July (4)
    • ►  April (3)
    • ►  March (23)
    • ►  February (11)
Theme images by RBFried. Powered by Blogger.