Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
__ ___ ___ ___ _ ___ __ ___
|__ | | | \ / | | | |\ | | |__| | | |
| |__ |___| \/\/ |___ |___| | \| | |''\ |___| |___
___________________________________________________________
a1. Write a C program to print "Hello World".
a2. Write a C program to copy input to output.
a3. Write a C program which takes in input string and returns the length of the string.
a4. Write a C program to convert fahranheit into celsius.
a5. Write a C program to print a statement using ternary operator.
a6. Write a C program to check if a number is even or odd.
a7. Write a C program to find the largest among the three numbers.
a8. Write a C program to demonstrate switch-case and break.
a9. Write a C program to execute a simple calculator.
a10. Write a C program to calculate the sum of first N natural numbers.
a11. Write a C program to read input until user enters a positive number.
a12. Write a C program to check if a number is prime or not.
a13. Write a C program to read 15 integer from user and print sum of only positive integers.
a14. Write a C program to read integers until user enters a negative integer or number of integer read reaches to 15.
a15. Write a C program to find the factorial of a given number.
a16. Write a C program to print half pyramid using */+.
a17. Write a C program to count the digits in the number.
a18. Write a C program to check if a number is an armstrong number or not.
a19. Write a C program to print the following pattern.
*
***
*****
*******
a20. Write a C program to check if a number is a palindrome or not.
a21. Write a C program to generate fibonacci sequence.
__ _ ___ ___ ___ __ _
|__ | | |\ | | | | | | |\ |
| |__| | \| |___ | _|_ |__| | \|
_____________________________________
a22. Write a C program to swap two numbers.
a23. Write a C program to implement pow() function.
_ __ __ _ ___
/_\ |__| |__| /_\ \__/ |___
/ \ |``\ |``\ / \ / ___|
_________________________________
a24. Write a C program to check if the two arrays a and b have an element in common.
___ ___ ___ ___ _ _ ___
|___ | |___| | |\ | | _--
___| | |''\ _|_ | \| |__||
_______________________________
a25. Write a C program to implement strcpy().
a26. Write a C program to implement strcat().
a27. Write a C program to implement strcmp().
a28. Write a C program to count the number of characters.(from a file)
a29. Write a C program to implement strrev().
a30. Write a C program to remove all the occurances of a character from the string.
__ ___ __ ___ _
|__ | | |__ | / || ||
| _|_ |__ |__ _|_ / ||_||
______________________________
a31. Write a C program to read an external file and print number of characters.
a32. Write a C program to read user input and write it to an external file.
a33. Write a C program to read a stream of characters.(dynamic)
a34. Write a C program to count the input lines from external files.
LINKED LISTS
_____________
a35. Write a C program to do the following ::
1> Insert integers dynamically into node in singly linked list.
2> Insert an integer in front of the singly linked list.
3> Insert an integer at the end of singly linked list.
4> Print the linked list.
___ ___ ___ __ _ _
| | ||___ | || || | \/ |
|___ |__| ___| | ||__|| | |
_________________________________
c1. Write a C program to multiply (any numeric int) X 5^(numeric int). Without multiplying them. BY --> 839478 X 625 => 839478 X 5^4 => (839478 X 10^4)/2^4
c2.
c3. Write a C program for insertion of a node in Linked List (on the basis of some constraints). Assume :: Sorted Linked List. Make a node with user input and append accordingly.
c4.
c5. Write a C program for, given an array A your task is to tell at which position the equilibrium first occurs in the array. Equilibrium position in an array is a position such that the sum of elements below it is equal to the sum of elements after it.
c6. Write a C program for, given n non-negative integers in array representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
c7. Write a C program for, given an array of distinct elements, rearrange the elements of array in zig-zag fashion in O(n) time. The converted array should be in form a < b > c < d > e < f.The relative order of elements is same in the output i.e you have to iterate on the original array only.
c8. Write a C program for, given a number N, our task is to find the closest Palindrome number whose **absolute** difference with given number is minimum.
c32. Write a C program for Stock Buy & Sell.