Showing posts with label program. Show all posts
Showing posts with label program. Show all posts

Saturday, April 5, 2014

Factorial C program Algorithm Flowchart

Q. Write a C program to find the factorial value of a number. Also write the algorithm and draw flowchart.

Ans.

/*c program to find out factorial value of a number*/
#include<stdio.h>
#include<conio.h>
int main()
{
 int n,i,fact=1;
 printf("Enter any number : ");
 scanf("%d", &n);
 for(i=1; i<=n; i++)
    fact = fact * i;
 printf("Factorial value of %d = %d",n,fact);
 return 0;
}

The output of above program would be:
Output of calculate factorial value  of a number C program
Screen shot for calculate factorial value
of a number C program



Algorithm for calculate factorial value of a number:

[algorithm to calculate the factorial of a number]
step 1. Start
step 2. Read the number n
step 3. [Initialize]
        i=1, fact=1
step 4. Repeat step 4 through 6 until i=n
step 5. fact=fact*i
step 6. i=i+1
step 7. Print fact
step 8. Stop
[process finish of calculate the factorial value of a number]

Flowchart for calculate factorial value of a number:

flowchart for calculate factorial value of a number
Figure: Flowchart for calculate factorial value of
a number C program

Read More..

Friday, April 4, 2014

PROGRAM FOR GETTING THE DISK STATUS

#include #include #include void main(void) 

 clrscr();
 union REGS regs;
 regs.h.ah = 1; 
 regs.h.dl = 0x80;



 int86(0x13,&amp;regs,&amp;regs);
 printf(&quot; If successful operation then AH &amp; AL register resets.&quot;);
 printf(&quot; AH register - %d&quot;,regs.h.ah); 
 printf(&quot; AL register - %d&quot;,regs.h.al);
 printf(&quot; Successful Operation.&quot;);
 getch();
 }


Read More..

Friday, March 28, 2014

C110 CX7300 CX8300 CX9300F Adjustment Program

Here are new sets of reseters shared to us by another member "e2500e". Many thanks to you guys who are very supportive and generous in our group.

We were able to test the C110 reseter with an actual printer and its working. All others were not tested with an actual printer but the good news is, the program itself is working even without the printer unlike other copies that are circulating in the net in which we are stuck in particular mode.

Good luck to everyone who needs these reseters. Please give your feedback through indoreset mailing list.

Epson C110 Adjustment
[JOIN OUR MAILING LIST TO GET DOWNLOAD INFO]


Epson CX7300 Adjustment
[JOIN OUR MAILING LIST TO GET DOWNLOAD INFO]


Epson CX8300 Adjustment
[JOIN OUR MAILING LIST TO GET DOWNLOAD INFO]

Epson CX9300F Adjustment
[JOIN OUR MAILING LIST TO GET DOWNLOAD INFO]


Happy reseting everyone!!!

The Moderators
Read More..
 
Blog Information - Powered By Blogger