Вы находитесь на странице: 1из 3

Program List 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20.

Print Hello World. Write a program that accepts the integer input from user and print it. Write a program that performs basic arithmetic operation of addition on two numbers. Write a program to find area of circle. Write a program to calculate simple and compound interest. Write a program to convert temperature from degree centigrade to Fahrenheit and vice versa. Write a program to calculate sum of 5 subjects and find percentage. Write a program to print table of any number. Write a program that check the number is odd or even.(Using modulus operator, using conditional operator, using bitwise operator ). Write a program that performs basic arithmetic operations (like addition, subtraction, multiplication and division). Write a program that checks whether input number is vowel or not. Write a program that checks whether input year is leap year or not. Write a program that adds digits of a number. Write a program to find and print factorial of a number (using loop and using recursion). Write a program to convert decimal value into binary. Write a program that adds n numbers which is entered by user. Write a program to swap (interchange) two values with and without third variable. Write a program to print numbers in reverse order. Write a program that checks whether the number is palindrome or not (For ex.121, 212, 12321). Write a program to print below pattern. a)
* *** ***** ******* *********

b)
* *** ***** *** *

21. 22. 23. 24. 25.

Write a c program for prime number. Write a program that checks whether a number is armstrong or not (for ex. 33 + 73 + 13 = 371). Write a program that generates armstrong number. Write a program that generates Fibonacci series (for ex. 0, 1, 1, 2, 3, 5, 8, n). Write a program to print Floyds triangle.

1 23 456 7 8 9 10 : : 26. Write a program to print Pascal triangle.

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 and so on.

27. 28. 29. 30. 31. 32. 33. 34.

Write a program to add two numbers using pointer. Write a program to find maximum element in array. Write a program to find minimum element in array. Write a program to reverse an array. Write a program code to merge two sorted array. Write a program to add two matrices. Write a program to subtract two matrices. Write a program to transpose a matrix. [for ex. 12 34 56 Then transpose of the above matrix will be 135 246 ] 35. Write a program to multiply two matrices (3x3). 36. Write a program that accepts the string from user and print it. (Note: scanf can only input single word strings, to receive strings containing spaces use gets function.) 37. 38. 39. 40. 41. 42. 43. Write a program that prints the length of string. Write a program that compares two string using strcmp, without using strcmp function. Write a program that copy string using strcpy, without strcpy (using pointer). Write a program that concatenates two strings. Write a program to reverse a string. Write a program that checks whether a string is palindrome or not. Write a program that remove vowels in string.

44. Write a program that finds a substring from a given string. 45. Write a program to sort a string in alphabetical order. [for ex. Suppose we entered programming Then output will be aggimmnoprr] 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. Write a program to change the case. Write a program to swap strings i.e. contents of two strings are interchanged. Write a program to read from a file. Write a program to copy text file. Write a program to merge two files. Write a program to list files in a directory. Write a program to delete existing file from directory. Write a program that generates random numbers using random function. Write a program that print system date.

Вам также может понравиться