Author: faltutech
Pursuing MCA from YMCA University, Faridabad
Pursuing MCA from YMCA University, Faridabad
[crayon-5a2bb28f46321634433267/] [crayon-5a2bb28f4632c699799800/]
Works only upto 3 digit number [crayon-5a2bb28f46522307928839/]
What is a nasty number? Well it is a number whose four different factors can be arranged in such a way that sum of two is equal to difference of other two. Take an example of nasty number 36. It have factors 1,2,3,4,6,9,12,18. So, we have 2+1=6-3 . So, it Read more…
Note : Just for Knowledge and avoid using it. [crayon-5a2bb28f468e9147026955/]
Note: Should not be used to for sorting large data. #include < stdio.h > #include < conio.h > #define size 20 // size of array void main() { int i, j, temp, elements[size], n; clrscr(); printf("Enter the number of elements\t"); // Enter the number of total elements Read more…
Which are armstrong numbers? Numbers whose sum of cube of digits is equal to the number itself. e.g. if we take 153 than 13 =1 53=125 33=27 and sum of all of them is 1+125+27=153 so 153 is a armstrong number. Code in c : #include < stdio.h > #include Read more…
UPDATE: Bluehost Has started charging for their cloud. So below trick may not work now. Note : linux only. First of all What is Remote Desktop (RDP). It is a computer somewhere else (most of time have very fast internet) which can be used just like you use your computer Read more…
After installation of vesta control panel in VPS we found that we were able to send emails from webmail client but were not able to receive emails. We dug into it and found that it was an exim (mail server) configuration that have to be changed. Error shown in log Read more…
Matching One of Several Characters As you have learned previously, . matches any one character (as does any literal character). But what if there was a file (containing Canadian sales data) named ca1.xls as well with na1.xls and sa1.xls, and you only wanted to match only na and sa?. would also match c,and Read more…