Friday, 21 August 2015

Change Control Focus on Enter Key Press in C# (write the code in form keydown event,{enable keypreview=true;}) if (e.KeyCode == Keys.Enter) { SendKeys.Send("{TAB}");} ...

Thursday, 20 August 2015

PRIME NUMBER - Defnition A prime number is a whole number greater than 1, whose only two whole-number factors are 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, and 29. ...

Tuesday, 18 August 2015

Source Code to Display Prime Numbers Between two Intervals /* C program to display all prime numbers between Two interval entered by user. */ #include <stdio.h> int main() { int n1, n2, i, j, flag; printf("Enter two numbers(intevals): "); scanf("%d %d", &n1, &n2); printf("Prime numbers between %d and %d are: ", n1, n2); for(i=n1+1; i<n2; ++i) { flag=0; for(j=2; j<=i/2; ++j) { if(i%j==0) { flag=1; ...

C Program to Add Two Matrix #include <stdio.h>   int main() { int m, n, c, d, first[10][10], second[10][10], sum[10][10];   printf("Enter the number of rows and columns of matrix\n"); scanf("%d%d", &m, &n); printf("Enter the elements of first matrix\n");   for (c = 0; c < m; c++) for (d = 0; d < n; d++) scanf("%d", &first[c][d]);   printf("Enter the elements of second matrix\n");   for...