Showing posts with label C programming. Show all posts
Showing posts with label C programming. Show all posts

Sunday, 14 February 2016

Write a C program to check if the given number is a armstrong number or not? - Online Rockers

Post by On at 12:32:00
                   Greetings viewers, We  are back.Today our topic is going to be Armstrong number.

What is Armstrong number?



                   Any guesses ?  Consider a number 371 . When you split each digit , cube them and add them and you get the same digit , then it is called Armstrong number.



3^3 = 27


7^3=343


1^3=1


(3)^3 + (7)^3 + (1)^3 = 27 + 343 + 1 = 371


                                And thus you get the same number again ( No. 371 )


Friday, 29 January 2016

Write a C program to find if the given number is a prime number or not - Online Rockers

Post by On at 10:46:00
 Good Morning viewers,

                            I am starting my day with this post. Seeing the title above , you may think weird such that how can we feed the logic to a computer to know if the entered number is a prime number or not. But the fact is that it is so simple.

How will you find if a number is a prime number or not?


                            Generally speaking , numbers above 1 can only be a prime number or a composite number . Any number which has its factors 1 and itself is called prime number. For example , 7 has its factors 1 and 7 . Hence, it is a prime number.If a number has factors other than 1 and itself then it is called Composite number.


                           Logically , we know to find a prime number , by checking if the number is divisible by any other number . Now , a doubt may arise in my mind thinking , how can a computer check this,  Don't worry , I am gonna show you how to do this.

Note:In order to compile a C program , you must have a C compiler. You can download it here for absolutely  free,


Thursday, 28 January 2016

Write a C program to find the sum of the square series

Post by On at 20:52:00
           Greetings viewers , today we are going to talk about square series .


Have you heard about square series?


          The sum of natural numbers is given by 1+2+3+4+...+n . Similarly squaring each term and adding we get the square series. It is represented as 1^2+2^2+3^2+4^2+...+n^2...You might be struck with the logic , but actually, this is too simple. Now let me show you how to write C program for this.


Note: In order to compile C program you need to have a C compiler . Download Dev C compiler from here.



Tuesday, 26 January 2016

Write a C program to check if the given string is a palindrome or not using string functions - Online Rockers

Post by On at 19:13:00
                     Hi viewers , today are going to look at string palindrome .

What is string palindrome?


               Just consider a word , say hello . When you reverse it you get olleh . The initial word and the reversed word or not the same. When you reverse the word Malayalam , you get the same word . This is called string palindrome.


                 Let's write a C program to find if the string accepted from the user is a palindrome or not . To compile this you need a C compiler If you don't have a compiler get it from here.



Monday, 25 January 2016

Write a C program to find the sum of digits.

Post by On at 15:43:00
            Hi viewers , We are going to include a number of viewers required programs and information in our blog. kindly stay connected.

       Today , I am going to explain how to write a C program to find the sum of digits . What does the sum of digits mean ? If you consider a number say , 975 , the sum of its digits are - (9+7+5) = 21.
How to write a C program for this ? Let's see that now.

Note : In order to compile a C program , you need a C compiler. If you don't have kindly download it from here.


Sunday, 24 January 2016

Download Dev C/C++ Version 4.9.2 - Online Rockers

Post by On at 16:01:00
                Hi viewers , this is our new initiative to download great apps so that users will be benefited because of this . Today I am going to provide you C/C++ program compiler version 4.9.2 .

            C/C++  coding is learned by all Computer Science students but they don't know how to execute and verify their program. That's the reason why I am posting this program today. Download the file below and install it.




Size of file: 48 MB



                                                         Download here

 Click here to download Dev C/C++ compiler 4.9.2

Subscribe to us to get our posts regularly.
Enter your email id in the subscription form on our page.

Share it with your friends in social media. 


Related Posts Plugin for WordPress, Blogger...