Assignment for Practice

1.  Display This Information using printf

a.    Your Name

b.    Your Birth date

c.    Your Age

d.    Your Address

2.   Write a program to make addition, Subtraction, Multiplication and Division of Two Numbers.

3.   Write a program to make a square and cube of number.

4.   Write a program to find the Area of Circle

5.   Write a program to find the Area of Triangle

6.   Write a program to find the simple Interest.

7.   Write a program to convert temperature from degree centigrade to Fahrenheit.

8.   Write a program to calculate sum of 5 subjects & find the percentage. Subject marks entered by user.

9.   Write a Program to show swap of two No's without using third variable.

10. Write a Program to check the given number is Positive, Negative.

11. Write a Program to check the given year is leap year or not.

12. Write a Program to check the given number is prime or not prime.

13. Write a program to find the Max number from the given three number using Nested If.

14. Write a program to find the Max number from the given three number using Ternary Operator

15. Write a program to find the Max number from the given three number using Nested If

16. Write a program user enter the 5 subjects mark. You have to make a total and find the percentage.

Percentage > 75 you have to print “Distinction”

Percentage > 60 and percentage <= 75 you have to print “First class”

Percentage >50 and percentage <= 60 you have to print “Second class”

Percentage > 35 and percentage <= 50 you have to print “Pass class”

Otherwise print “Fail”

17. Write a Program of Addition, Subtraction, Multiplication and Division using Switch case. (Must Be Menu Driven)

18. Write a program of to find out the Area of Triangle, Rectangle and Circle using If Condition. (Must Be Menu Driven)

19. Looping Programs

a.    Write a program to print the 1 to 10 using For loop.

b.    Write a Program to print the 51 to 60 using while loop

c.    write a program to print the 100 to 81 using do....while loop

d.    write a program you have to find the factorial of given number.

e.    Write a program you have to print the Fibonacci series up to user given number.

f.     write a program you have to print the table of given number.

g.    Write a program to print the number in reverse order.

h.    Write a program to find out the max from given number (E.g. No: - 1562 Max number is 6 )

i.      Write a program make a summation of given number (E.g. 1523 ans :-11)

j.      Write a program you have to make a summation of first and last Digit. (E.g. 1234 ans:-5)


20. Print following Pyramids :

a.     

1

2    3

4    5    6

7    8    9    10

11  12  13  14  15

b.     

*

*    *

*    *    *

*    *    *    *

*    *    *    *    *

  

21. Write a program to enter a five elements using Array and print it on a screen.

22. Write a program to enter a five elements using Array and print it on a screen.

23. Write a program to enter a ten elements using Array and find out the total number of odd and even numbers.

24. Write a program to enter a ten elements using Array and make a summation of the numbers and average of summation.

25. Write a program to find out the max number from given 10 elements of array.

26. Write a program to sort the array of 5 elements.

27. Write a program to find out the second smallest number from the array.

28. Write a Program of find the element of given position from the array.

29. Write a program to find out the Square and cube of given number using function.

30. Write a program to find out the factorial of given number using function

31. Write a program to print the Fibonacci series using function.

32. Write a program to find out the max number from given array using function.

33. Write a program to sort the array using   function.

34. Write a program to print the string in reverse order using function.

35. Write a Program of Factorial using Recursive Function.

36. Write a Program of Print a number and check the number is palindrome or not using recursive Function.

37. Write a Program of Make a string reverse using recursive Function.


Last modified: Thursday, 18 July 2019, 4:11 PM