Showing posts with label FOR LOOP. Show all posts
Showing posts with label FOR LOOP. Show all posts

Monday, 24 December 2012

C program to write menu driven program which has following option

1 : Factorial of a number

2 : Prime or not prime

3 : Odd or even

4 : Exit
OUTPUT

C program to calculate the sum of first 7 terms of the siries

The natural logrithm can be approximated by the following series
OUTPUT

C program to read 10 sets of p,n,r &q and calculate the corresponding a's

OUTPUT

C program to produce a following output

OPTPUT

write a program to produce a following output


OUTPUT

Monday, 17 December 2012

C program to produce a table of values of i, y, and x where....

Y varies from 1 to 6 and for each value of y, x,varies from 5.5 to 12.5 in steps of .5. using formula : i=2+(y+0.5x)
OUTPUT

Saturday, 15 December 2012

C program to find all combination of 1,2 and 3

OUTPUT

C program to sum of first seven terms of series

Series is (1/1!)+(2/2!)+(3/3!)+...........
OUTPUT

c program to print ASCII value from 1 to 255

OUTPUT

C program to print smiley face on full screen

OUTPUT

C program to print smiley face on full screen

OUTPUT

C program to print all prime number from 1 to 300

OUTPUT