Posts

Showing posts from February, 2018

Certified

Image

(i) Write a function to find the binary equivalent of a given decimal integer and display it.

Image

(f) Write a C function to evaluate the series L−+−+= !)7/()!5/()!3/()sin( 573 xxxxx

Image

) Write a recursive function to obtain the running sum of first 25 natural numbers.

Image

(d) A positive integer is entered through the keyboard, write a function to find the binary equivalent of this number using recursion.

Image

1. A 5-digit positive integer is entered through the keyboard, write a function to calculate sum of digits of the 5-digit number: using recursion

Image

1. A 5-digit positive integer is entered through the keyboard, write a function to calculate sum of digits of the 5-digit number: (1) Without using recursion

Image

(h) Write a function that receives marks received by a student in 3 subjects and returns the average and percentage of these marks. Call this function from main( ) and print the results in main( ).

Image

(g) Write a function that receives 5 integers and returns the sum, average and standard deviation of these numbers. Call this function from main( ) and print the results in main( ).

Image

(f) Write a function which receives a float and an int from main( ), finds the product of these two and returns the product which is printed through main( ).

Image

(e) A positive integer is entered through the keyboard. Write a function to obtain the prime factors of this number?

Image

(d) Any year is entered through the keyboard. Write a function to determine whether the year is a leap year or not?

Image

Smile

Image

QaSim Khan

Image

Feedback

Image
Hello Guys .....anyone had suggestion to how moderate the blog.......

(e) A positive integer is entered through the keyboard. Write a function to obtain the prime factors of this number?

Image

Sterick

Image

(b) Write a function power ( a, b ), to calculate the value of a raised to b.

Image

(k) Write a function to compute the greatest common divisor given by Euclid’s algorithm, exemplified for J = 1980, K = 1617 as follows:

Image

If the lengths of the sides of a triangle are denoted by a, b, and c, then area of triangle is given by

Image