CODING IS FUN 😎
1. Program to Calculate sum of 2 numbers.
2. Program to Calculate simple interest.
3. Program to convert Celsius to Fahrenheit.
4. Program to compute average of three numbers.
5. Program to check a given number is even or odd.
6. Program to find greater among three numbers.
7. Program to compute area of circle.
8. Program to compute area of rectangle.
9. Program to compute volume and surface area of a cube.
10.Program to compute gross salary, basic salary is entered by user
and gross salary is sum of basic salary, HRA(30% of basic), and TA(10% of basic).
11. C Program to Calculate Area of Equilateral Triangle.
12. C Program to reverse a given number.
13. Calculate sum of 5 subjects and Find percentage.
14. C program to compute roots Quadratic Equation.
15. Swap of two no’s without using third variable.
16. Generate the Fibonacci Series starting from any two numbers.
17. Print First 10 Natural Numbers.
19. Check Whether Given Number is Palindrome or Not.
20. Check Whether Number is Prime or not.
21. Write a c program to convert the string from upper case to lower case.
22. Write a c program to convert the string from lower case to upper case.
23. Program to Convert Binary to Decimal.
24. Program for Decimal to Hexadecimal Conversion.
25. Program for Decimal number to Octal Conversion.
26. Program to Convert Decimal number into Binary.
27. Program to implement Stack Operations Using Array.
28. C Program to delete duplicate elements in an array.
29. C Program to calculate Addition of All Elements in Array.
30. C program to find Smallest Element in Array in C Programming.
31. C Program to find Largest Element in Array in C Programming.
32. C Program to reversing an Array Elements in C Programming.
33. Merging of Two arrays in C Programming.
34. Write a c program for linear search.
35. Write a c program for binary search.
36. Write a C function that computes that total sum of a elements of a 2D array?
37. Write a C function that searches for value key in a 2D array of size 6X5. The function should return true if found false otherwise.
38. Write a C program to demonstrate use of toupper, tolower, pow, sqrt, fabs, floor, ceil functions.
39. Write down a recursive function fab to computes Fibonacci of the nth number. Assume fab(1)=0 & fav(2)=1.
40. Write a C program that prints below pattern using nested loop?
41. Write a C Program to find sum of two matrices in 1D.
42. Write a C Program to find subtraction of the matrices in 1D
43. Write a C Program for multiplication of two matrices in 1D
44. Write a program to calculate sum of first 25 odd numbers.
45. Write a C Program to find transpose of a matrix.
46. Write a C function that computes that maximum of a specific row R in a 2D array of size 6X5.
47. Write a program to compute sum of those array elements that are prime in an array of 10 integers.
48. Write a function to concatenate two strings and using that a program to read three Strings and use the function to concatenate them and print it.
49. Write C Program that counts the particular word in the given string. For example in the string " the string is the set of charterers" , Number of occurance of "the" is:2.
50. Write C Program to generate two random numbers between 1 to 100.
51. Write a menu driven program for addition, subtraction, product and division.
52. Write a program to calculate sum of first 25 even numbers.
53. Write C Program to print prime factors of a input number >=4.
54. Write C Program to for bubble Sort.
55. Write a c program to develop a game “Lucky Seven”. (sum of rolling two dices is compared against user choice of 7, below 7 or above 7 and if it matches user choice user wins else user looses).
56. Write a program to List all the arithmetic and relational operators along with there example expression with output.
57. Write a program to calculate sum of first 25 prime numbers.
58. Write a program to calculate factorial using function.
59. Write C Program to for selection Sort.
60. Write a program to input a string and print count of different vowels in it.
61. Write a C program that prints below pattern using nested loop?
A
A B A
A B C B A
A B C D C B A
62. Write a program to display Fibonacci series upto n using function.
63. Write C Program to for insertion Sort.
64. Write a C function that computes that total sum of of a specific col C in a 2D array of size 6X5.
65. Write a program to display Fibonacci series upto n using recursion.
66. Write a program to calculate sum of series 1+1/4 + 1/9 +……….+1/n^2.
67. Write a program to demonstrate pre-increment and post-increment operation.
68. Write a program to demonstrate use of global variable.
69. Write a program to demonstrate use of static variable.
70. Write a function that can produce sum of first n natural numbers.
71. Write C Program to compute the surface area and volume of a cube.
72. Write a program to calculate sum of series 1/4 + 4/9 + 9/16 +……….+ (n-1)^2 / n^2.
73. Write a program to count number of even numbers in an array.
74. Write a program to display all the ascii characters on the screen.
75. Write a program to read a file and count number of words in the file.
76. Write a program using structure to compute sum of two Complex numbers.
77. Write a program using structure to compute sum of two Rational numbers.
78. Write a program that will calculate and show the bills of an Electric Company. The rates vary depending on whether the use is residential (R), commercial( C), or industrial (I). Any other code should be treated as an error. The program should accept the subscriber ID, Subscriber Name, his total electrical consumption(kWh) in a month, and the code of the consumer type.The rates are computed as follows:
R: 50 plus .50 per kWh used
C: 100 for the first 1000 kWh and 0.45 for each additional kWh
I: 180 for the first 1000 kWh and 0.75 for each additional kWh
79. Write C prgram for accessing array elements(Traversing array) by incrementing a Pointer.
80. Write a program to demostrateuse of Pointer to a Pointer.
81. Write a program to demostrateuse of Pointer arithmetic.
82. Write a program to create TIC TAC TOE game(two players X, O).
83. Write a program in C to read an existing file.
84. Write a program in C to write multiple lines in a text file.
85. Write a program in C to read the file and store the lines into an array.
86. Write a program in C to find the content of the file and number of lines in a Text File.
87. Write a program in C to count a number of words and characters in a file.
88. Write a program in C to delete a specific line from a file.
89. Write a program in C to replace a specific line with another text in a file.
90. Write a program in C to append multiple lines at the end of a text file.
91. Write a program in C to copy a file in another name.
92. Write a program in C to merge two files and write it in a new file.
93. Write a program in C to encrypt a text file(use either substitution or transposition).
94. Write a program in C to decrypt a previously encrypted file file.
95. Write a program to print nth FIBONACCI using function
INPUT:4 OUTPUT: 2 Hint (0,1,1,2)
96. Write a program to create PIN from three integer input values
Example-1 input1=123 input2=582 input3=175 then PIN=8122
Example-2 input1=190 input2=267 input3=853 then PIN=9150
PIN should be 4 digit
units digit=least of units position of three input numbers
tens digit=least of tens position of three input numbers
hundreds digit=least of hundreds position of three input numbers
thousands digit=maximum of all the digits in three input numbers.
97. Write a program to Return second word in Uppercase
Input String - "wipro technologies bangalore"
Output : TECHNOLOGIES
98. write a program for IsPalindrome (string) using function input should be string
Example--> Madam, madam,madaM, all are palindromes
if palindrome return 2
else return 1
99.Write a program to calculate weight of string using function that takes two inputs one string and one integer, if input2 is 0 we have to neglect vowels and find weight of input1 and if input2 is 1 we have to consider all the alphabets of input1
Example 1- input1=wipro input2=0 sum=23+16+18=57
Example 2- input1=wipro input2=1 sum=23+9+16+18+15=81
100. Write a program to find Most Frequent Digit from four given input numbers.
Example - input1=123 input2=223 input3=412 input4=498
1 occurs 2 times 2 occurs 4 times 3 occurs 2 times
4 occurs 2 times 8 occurs 1time 9 occurs 1 time
-- so output should be 2 as it occurs maximum number of times
-- if 2 digits are occuring same number of times then the maximum number should be the answer.
101. Write a program in C to FindStringCode using function
Example - Input String - world wide web
world=[23-4]+[15-12]+18=19+3+18=40
wide=[23-5]+[9-4]=18+5=23
web=26
Output 402326
No comments:
Post a Comment