Skip to content

Manikumar2609/Practising-C-Language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Practising-C-Language

Simple and Tricky C programs

If You are beginner level programmer this will help you a lot...

Cprograms

  1. Binary and Decimal Conversion

  2. Check palindrome using test case and print yes or no.

  3. Check perfect number or not.

  4. Count number of vowels in the given string.

  5. Display the count of odd numbers up to given range n.

  6. Display the count of prime numbers upto given range.

  7. Display the counts of Polyndrome numbers from 10 to 100000.

  8. Display the digits in increasing order from 1000 to 9999.

  9. Display the odd numbers up to given range n.

  10. Reverse a given number.

  11. Separate unit digit in given number.

  12. Seperate ten's digit from in given number.

  13. Sum of digits in a given number.

  14. Sum of odd number up to given range n.

  15. Sum of prime numbers ranges up to n.

  16. Temperature Conversion using function.

  17. Finding Average

Tricky Programs

  1. Write a program to get a user 'input as Integer variable' using scanf. Convert the 'integer into character string and print the same as string' using printf

  2. Write a program to get a user 'input as string' using scanf. Convert the 'string into integer and print the same as integer' using printf

  3. Write a program to get a number up to 50 digits from user. check whether the number is a valid number. Valid number contains digits 0 -9.

  4. Write a program to get a number from user up to 50 digit. print the reverse of the number using printf ("%s", ...) function. Before reversing the number check whether the number is a valid number.

  5. Write a Program to get a 'string from the user', and 'a word' from the user. Remove the word from string and print the string. Write the program using functions.

  6. List of Questions

    • Write a program to find out the total number of prime numbers below 1,000,000 have the sum of their digits equal to 14?

         Answer : 1218 
      
    • Write a program to find out the total number of prime numbers below 10,000,000 have the sum of their digits equal to 14?

         Answer: 3547
      
    • Write a program to find out the total number of prime numbers below 100,000,000 have the sum of their digits equal to 14?

         Answer: 9268
      
  7. Write a program to Print the number of zeroes you encounter between the numbers 0 to 1000.

  8. Write a C program to count number of vowels in the given string.

  9. Write a C program to reverse every word from given string using function.

Thanks for Reading, I hope it will help

About

Simple C programs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages