Home
Forums
Programming
Web Development
Tutorials
Snippets
Blogs
Freelance
Jobs
Lounge
Login
Join for Free!
Programming Help
C and C++
Visual Basic
Java
VB.NET
C#
ASP.NET
PHP
ColdFusion
Perl and Python
Ruby
Databases
Other Languages
Game Programming
Software Development
Computer Science
Industry News
Web Development
Web Development
HTML & CSS
JavaScript
Graphic Design
Flash & ActionScript
Blogging
SEO & Advertising
Web Servers & Hosting
Site Check
What's Here?
Members:
137,420
Replies:
481,948
Topics:
75,147
Snippets:
2,568
Tutorials:
676
Total Online:
1,969
Members:
68
Guests:
1,901
[X]
My Assistant
Loading. Please Wait...
Dream.In.Code
>
Programming Help
>
C and C++
Welcome to Dream.In.Code
Become a C++ Expert!
Join 137,420 C++ Programmers for FREE!
Get instant access to thousands
of C++ experts, tutorials, code snippets, and more! There are 1,969 people online right now.
Registration is fast and FREE...
Join Now!
Chat
LIVE
With a C++ Expert
factorial of elements of array
factorial of elements of array, factorial of 5 elements
Options
SPS
19 Jan, 2008 - 08:56 AM
Post
#1
New D.I.C Head
Joined:
18 Jan, 2008
Posts:
4
CODE
#include<iostream.h>
#include<conio.h>
void main()
{
int num[3],fact=1;
for(int i=0;i<3;i++)
{
cout<<"enter the value"<<(i+1);
cin>>num[i];
}
for(int j=0;j<3;j++)
{
for(int k=0;k<=j;k++)
{
fact*=k;
}
}
cout<<"the fact= "<<fact;
getch();
}
This Post Was Helpful!
Register for Free to Make These Ads Go Away!
GWatt
RE: Factorial Of Elements Of Array
19 Jan, 2008 - 09:04 AM
Post
#2
human inside
Joined:
1 Dec, 2005
Posts:
2,199
Thanked:
20 times
Dream Kudos:
450
My Contributions
Is this supposed to be a question?
This Post Was Helpful!
Display Mode:
Standard
·
Switch to: Linear+
·
Switch to: Outline
Track this topic
·
Email this topic
·
Print this topic
·
Subscribe to this forum
Time is now: 12/5/08 04:22AM
Invision Power Board
v2.1.7 © 2008 IPS, Inc.
Licensed to: MediaGroup1
Advertising
|
Terms of Use
|
Privacy Policy
|
About Us
|
Site Map
Forum Index:
Programming Help
|
C and C++
|
Visual Basic
|
Java
|
VB.NET
|
C#
|
ASP.NET
|
PHP
|
ColdFusion
|
Perl and Python
|
Ruby
|
Databases
|
Other Languages
|
Game Programming
|
Software Development
|
Computer Science
|
Industry News
|
Programming Tutorials
|
C++ Tutorials
|
Visual Basic Tutorials
|
Java Tutorials
|
VB.NET Tutorials
|
C# Tutorials
|
PHP Tutorials
|
Linux Tutorials
|
ColdFusion Tutorials
|
Windows Tutorials
|
HTML/JavaScript Tutorials
|
CSS Tutorials
|
Flash Tutorials
|
Web Promotion Tutorials
|
Photoshop Tutorials
|
Software Development Tutorials
|
Database Tutorials
|
Other Language Tutorials
|
Copyright 2001-2008
MediaGroup1 LLC
, All Rights Reserved
A
MediaGroup1 LLC
Production - Version 6.0.2.1.36
Search
Updated!
w00t
Over 509,000 Pages!
Advanced Forum Search
Live C++ Help!
C++ Tutorials
Data Structures In C++ Tutorial
C++ Quick Reference Sheet (Cheat Sheet)
Making a 2D Game Engine Using OpenGL - Part3 is up
Object Oriented Programming (oop) Tutorial
CPP with ODBC (Open Database Connectivity)
Polymorphism Tutorial
Understanding Loops in C++
C++ Vector Tutorial
Converting and Evaluating Infix, Postfix and Prefix Expressions in C
Producing Random Numbers
114 More C++ Tutorials...
Reference Sheets
C++ Snippets
Linked List Class
Convert cases of strings
Getting Current Directory
Recursive Fibonacci Sequence
Shortest Function to Reverse a String ( Uses Recursion )
Insertion Sort Example
Finding Square Root without using sqrt()
Convert characters into a ASCII value and vice versa
integer to string conversion
Complex Numbers Class
448 More C++ Snippets...
DIC Chatroom
Join our IRC Chat
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
LifeHacker
(50)
sharpy
(50)
KYA
(50)