Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C Program to check FACTORIAL
main()
{
int i,j,m,fact,sum=0;
clrscr();
printf("ENTER THE NO.: ");
scanf("%d",&m);
for(i=1;i<=m;i++)
fact=1;
for(j=1;j<=i;j++)
fact=fact*j;
}
printf(" %d * ",i);
sum=sum+fact;
printf(" = %d",sum);
getch();
OUTPUT :
ENTER NO: 5
1 * 2 * 3 * 4 * 5 * = 120
Program is to define a class as student: Program is to define a class as student and display the records specific depending upon the number class student { private:
Define a function in c program: int f1() { static int x=10; return x; } int f2() { int y=5; return y; } extern int z; void f() {
what will be the c program for ideal gas equation.
Debug the following program to calculate N! #include using namespace std; main() { int N, factorial=1; cout cin >> N;
Described the difference among "new" and "operator new" ? A:"operator new" works such as malloc.
A: (a) int foo = 123; (b) int bar(123);
explain the function of strlen() and strcat()
assume that the first integer read with cin specifies the number of values remaining to be entered. that program should read only one value each time cin is executed .a typical inp
Given an integer n and a permutation of numbers 1, 2 ... , n-1, n write a program to print the permutation that lexicographically precedes the given input permutation. If the given
how do i write a c++ program that will input a number and output its factorial using the while loop
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd