Posts

Showing posts from June, 2013

Q. Write a C program to generate pascal triangle or Write a C program to print following number triangle :

Image
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 Solution: #include< stdio.h > #include< conio.h > void main() {     int a,b,i,j,d[30],t[30];     clrscr();     printf (" Enter the max limit: ");          scanf ("%d",&a);     b=a;     for (i=0;i< a;i++)     { //Initialisation..         t[0]=1; t[i]=1; d[0]=1; //Spacing..          for (j=0;j< b-1;j++)             printf (" ");         b--; //Calculation..          for (j=1;j<=i;j++)         {         d[j]=t[j-1]+t[j];         }         d...

10 Best moments in life

Image
- To finish your last exam.. - To wake up and realize its still possible to sleep "5 min" .   - To get a phone call saying class is cancelled.. . - To see an old friend again and to feel that things have not changed.. .   - To touch the fingers of newly born child.. . - Walking alone on a silent road at night and thinking of some good old days memories.. . - Riding the cycle/bike on a highway while its raining.. .   - Sitting alone but you are still smiling cause you know someone is watching you.. . -The calm You feel inside when you Are near to Almighty God . - And the last one is "right now" while reading this message there was constant smile on your face..

Q. Write a program to find the given number is strong or not?

#include< stdio.h > #include< conio.h > void main () {     unsigned int n,x,l,m,fact,a=1,ans=0;     clrscr();     printf ("\n Enter Number: ");      scanf ("%d",&n);     x=n;     while (n> 9)     {         fact=1;         l=n%10;         n=(n-l)/10;         m=l;         do         {             fact=fact*m;             m--;         }         while (m!= 0);         ans=ans+fact;     }     do     {         a=a*n...

Q.Write a Program to perform array multiplication( C programming).

Image
Array Multiplication: Solution: #include < conio.h > #include < stdio.h > void main () {     int a[25][25],b[25][25],c[25][25],i,j,m,n,o,k;     clrscr();     printf ("\n Enter row & column in A: \n");         scanf("%d\n%d",&m,&n);     printf ("\n Enter the column value in B: \n");         scanf("%d",&o);     printf ("\ nEnter %d*%d value of A \n",m,n);     for (i=0; i< m; i++)         for (j=0; j< n; j++)             scanf("%d",&a[i][j]);     printf ("\n Enter %d*%d value of B \n",n,o);     for (i=0; i< n; i++)         for (j=0; j< o; j++)             scanf("%d",&b[i][j]);     printf ("\n A value...

Ten Steps to Improve Computer Speed( Tamil )

Image
கணினியின் வேகத்தை அதிகரிக்க 10 வழிகள்! ! ! ! 1. உங்கள் கணினியின் RAM எனப்படும் Random Access Memory ன் அளவை அதிகப்படுத்தவும் . ஒரு சாதாரண கணினிக்கு 1GB போதுமானது. அதன் நினைவகத்தின் அளவை அதிகரிக்க அதிகரிக்க வேகமும் அதிகரிக்கும். இப்போது RAM ன் விலை மிகவும் மலிவுதான். 2. கணினியில் ஏற்கனவே நிறுவியிருக்கக் கூடிய தேவையற்ற மென்பொருட்களை நீக்கிவிடுங்கள் . புதிதாகக் கணினி வாங்கியிருந்தால்  கூட அத்துடன் ஏராளமான தேவையற்ற மென்பொருட்களையும் நிறுவி இருப்பார்கள். அவற்றில் சில மென்பொருட்கள் மட்டுமே நமக்குப்பயன்படும். மீதி அனைத்தையும் நிராகரித்து நீக்கிவிடவும். பழைய கணினியிலும் தேவையற்ற மென்பொருட்கள் இருப்பின் அனைத்தையும் நீக்கிவிடவும். அவற்றிற்குரிய Copy இருந்தால் அதை மட்டும் CD / DVD ல் ஏற்றி burn செய்துகொள்ளவும். 3. FireFox, Chrome, IE என ஒன்றுக்கு மேற்பட்ட browsers ஐ நிறுவி இருந்தால் அவற்றில் ஏதேனும் ஒன்றை மட்டும் வைத்துக்கொண்டு மீதியை uninstall செய்துவிடவும். 4. G-Talk, Yahoo Messenger, Live Messenger என ஒன்றுக்கு மேற்பட்ட அரட்டை அடிக்கும் பயன்பாடுகளைத் த...

Q. Write a program to get two different array values , merge them and finally produce the ascending order sorting of the result. (array Concept)-C programming

Image
Array Concept:   Program: #include < stdio.h > #include < conio.h > void main() {     int a[25],b[25],n,g=0,m,i,j,c,temp;     clrscr();     printf (" Enter the number of a: ");         scanf("%d",&n);     printf ("\n Enter the no of b: ");         scanf("%d",&m);     printf ("\n Enter a values \n");     for ( i=1; i<=n ; i++ )         scanf("%d",&a[i]);     printf ("\n Enter b values \n");     for ( j=1; j<=m ; j++ )     {         scanf("%d",&b[j]);         a[i]=b[j];         i++;     }     printf ("\n Merged values: \n");     c=n+m;     for ( i=1; i<=c; i++ )  ...