0% found this document useful (0 votes)
4 views

Important C Program

Uploaded by

rishabhgndu2023
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Important C Program

Uploaded by

rishabhgndu2023
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Write a program to print “hello world”

2. Wap to initialise a variable in both compile time and run time.

3. Wap to perform various arithmetic operations on variables.

4. Wap using decision making statements to perform relational operations on variables.

5. Wap to check whether the number entered by user is prime or not(done)

6. Wap to print ASCII value of character (done)

7. Wap to swap two numbers

8. Wap to check whether the a character is consonant or vowel(done)

9. Wap to find largest of three numbers(done)

10. Wap to print factorial of a number(done)

11. Wap to check if the year is leap year or not(done)

12. Wap to check if the string is palindrome or not .(done)

13. Wap to reverse a number

14. Wap to find all roots of quadratic equations by creating function

15. Wap to calculate factorial of a number using function

16. Wap to find maximum and minimum element in an array

17. Wap to sort elements in an array

18. Wap to search if item exists in an array

19. Wap to find length of the string(done)

20. Wap to demonstrate both call by value and call by reference in a function

Extra*

( do only when u want to go beyond passing semester exam)

1. Try various pattern programs

2. Try making your own calculator using c

3. Print current time and date of the year

4. Conversion programs( example: float to string, int to char , etc)

5. Spilt the string into substrings

6. Copy the entire array into another array.

7. Remove duplicity from array

8. Find GCD, LCM

9. Generate multiplication tables

You might also like