Program to Find the Factorial of a Given Number, C/C++ Programming

Program1:

Write a program to find the factorial of a given number. The input is user given. Final output is printed out on to the screen.

Program2:

Write a program to generate the Fibonacci series and print it out on the screen for the first 10 numbers. Initial two inputs are user given.

Program 3:

Try the following code and explain what does this program do? Fix any syntax errors.

.data
 Input DWORD  0Fh, 3Fh, 9Fh, 0BFh, 0FFh
 
.code
 Mov cx, 04h
 Mov esi, 00h
L1: Mov eax, input+esi
 Call SetTextColor
 Call Randomize
 Inc esi
 Inc esi
 Inc esi
 Inc esi
 Loop l1
 Exit

Posted Date: 3/2/2013 7:54:56 AM | Location : United States







Related Discussions:- Program to Find the Factorial of a Given Number, Assignment Help, Ask Question on Program to Find the Factorial of a Given Number, Get Answer, Expert's Help, Program to Find the Factorial of a Given Number Discussions

Write discussion on Program to Find the Factorial of a Given Number
Your posts are moderated
Related Questions
Custom Scans and Alerts Think or Swim Project Description: I am seeking somebody to make me several Custom Scans and Alerts on Thinkorswim TOS Skills required are C++ Prog

c program to count the number of occurances of the string in padovan''s string

accept principal amount,rate of interest, & duration from the user. display interest amount and total amount

In this Lab you will code 8086 assembler equivalents (Virgo) for common C control flow instructions. This will give you an appreciation for how control flow is implemented in assem

Define register with bit fields? We could define register simply with bit fields: struct DISK_REGISTER { unsigned ready:1; unsigned error_occured:1; unsigned disk_spinni

Explain about the Integer constants in c language? An integer constant is the integer valued number and it refers to a sequence of digits. A decimal integer constant includes o

Public, Private and Protected members: Class members can either be declared in public','protected' or in the 'private' sections of the class. But as one of the features of OOP i

Writing and compiling a program from a given Use Case definition. Follow the Average Temperature in Paradise

A: By keeping along with the C++ tradition of "there's more than one method to do that" (translation: "give programmers options & tradeoffs so they can choose what's best for them

Write a ‘C’ program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.