The difference between memorize and remember is that memorize occurs in real time whereas people remember what happened long ago.
Two ways to remember density is to know the formula or always remember the norm always goes on top of the donkey ex) N/D=N divided by D = answer
Assuming nickles, dimes, and quarters, there are ten different ways to make change for a half dollar. Just enumerate the combinations... 10 n 8 n 1 d 6 n 2 d 4 n 3 d 2 n 4 d 5 d 5 n 1 q 3 n 1 d 1 q 1 n 2 d 1 q 2 q
1 q 1 d 1 q 2 n 2 d 3 n 3 d 1 n 1 d 5 n 7 n
The answer is wdn. If I remember right, wouldn't you write as (wd)+n ??? Then again, algebra was awhile ago...
printf ("square of %d is %d\n", $n, $n*$n);
Suppose the number is n/d. Then n/d >= d => n <= d2 if d < 0 or n >= d2 if d > 0.
E N G L A N D
12=n in a d
#include <stdio.h> main() { int m, n, c, d, A[10][10],temp=0; printf("\nEnter the number of rows and columns for matrix A:\n"); scanf("%d%d", &m, &n); printf("\nEnter the elements of matrix A:\n"); for ( c = 0 ; c < m ; c++ ) for ( d = 0 ; d < n ; d++ ) scanf("%d", &A[c][d]); printf("\nMatrix entered is:\n"); for ( c = 0 ; c < m ; c++ ) { for ( d = 0 ; d < n ; d++ ) printf("%d\t", A[c][d]); printf("\n"); } printf("\n\nMaximum element of each row is:\n"); for(c=0;c<m;c++) { for(d=0;d<n;d++) { if(A[c][d]>temp) temp=A[c][d]; } printf("\n\t\tRow %d: %d",c+1,temp); temp=0; } temp=A[0][0]; printf("\n\nMinimum element of each coloumn is:\n"); for(c=0;c<n;c++) { for(d=0;d<m;d++) { if(A[d][c]<temp) temp=A[d][c]; } printf("\n\t\tColoumn %d: %d",c+1,temp); temp=A[d][c] ; } return 0; }
Sure. Here is an example: for (i=0; i<3; ++i) printf ("I am for loop, i=%d\n"); i=1; while (i>0) { printf ("I am while loop, i=%d\n"); i <<= 1; }
write a program in Java to find krishnamurti numbers( generally the logic of such questions is given in the question paper...i don't remember the logic , but i had written a program on this ) class krishnomurti { public static void main(int n) { int d,c,f=1,i,s=0; c=n; while(n>0) { d=n%10; n=n/10; for(i=1;i<=d;i++) { f=f*i; } s=s+f; f=f/f; d=d*0; } if(c==s) { System.out.println("yes"); } else { System.out.println("no"); } } }
There are 22 ways to make change from a dollar using nickels, dimes, and quarters. 1. 4 q 2. 10 d 3. 20 n 4. 2 q , 5 d 5. 3 q , 2 d , 1 n 6. 1 q , 7 d, 1 n 7. 9 d, 2 n 8. 8 d, 4 n 9. 7 d, 6 n 10. 6 d , 8 n 11. 5 d , 10 n 12. 4 d , 12 n 13. 2 d , 16 n 14. 1 d , 18 n 15. 5 n , 3 q 16. 3 n , 1 q , 6 d 17. 7 n , 1 q , 4 d 18. 9 n , 1 q , 3 d 19. 11 n , 1 q , 2 d 20. 13 n , 1 q , 1 d 21. 14n , 3 d 22. 15n , 1 q