B. J. Armstrong is 43 years old (birthdate: September 9, 1967).
Chat with our AI personalities
(1) M+B=2*J (2) M=8+B (3) J+B=20 Three equations. Three unknowns. Rewrite (1) M=2*J-B Sub into (2) 2*J-B=8+B Solve for B 2B+8=2J or B+4=J Sub J into (3) 2B + 4 = 20 B = 8 J = 12 M=16
Matrix-Addition(a,b)1 for i =1 to rows [a]2 for j =1 to columns[a]3 Input a[i,j];4 Input b[i,j];5 C[i, j] = A[i, j] + B[i, j];6 Display C[i,j];
a = 4.0 i - 3.0 j + 1.0 k b = -1.0 i + 1.0 j + 4.0 k → a + b = (4.0 + -1.0) i + (-3.0 + 1.0) j + (1.0 + 4.0) k = 3.0 i - 2.0 j + 5.0 k → a - b = (4.0 - -1.0) i + (-3.0 - 1.0) j + (1.0 - 4.0) k = 5.0 i - 4.0 j - 3.0 k → a - b + c = 0 → c = -(a - b) = -5.0 i + 4.0 j + 3.0 k So that a - b + c = (5.0 - 5.0) i + (-4.0 + 4.0) j + (-3.0 + 3.0) k = 0 i + 0 j + 0 k = 0.
#include<stdio.h> void main() { int a[3][3],b[3][3],c[3][3],i,j,k; clrscr(); printf("Enter elements of A:"); for(i=0;i<=2;i++) for(j=0;j<=2;j++) scanf("%d",&a[i][j]); printf("Enter elements of B:"); for(i=0;i<=2;i++) for(j=0;j<=2;j++) scanf("%d",&b[i][j]); printf("A:"); for(i=0;i<=2;i++) { for(j=0;j<=2;j++) printf("%d ",a[i][j]); printf(""); //To change line. } printf("B:"); for(i=0;i<=2;i++) { for(j=0;j<=2;j++) printf("%d ",b[i][j]); printf(""); } k=0; while(k<=2) { for(i=0;i<=2;i++) { int sum=0; for(j=0;j<=2;j++) sum=sum+a[i][j]*b[j][k]; c[i][k]=sum; } k++; } printf("Result: "); for(i=0;i<=2;i++) { for(j=0;j<=2;j++) printf("%d ",c[i][j]); printf(""); } getch(); }
<html> <head> <Script Language="JavaScript"> var a,n,b=0,t; n=parseInt(window.prompt("enter n","0")); t=n; while(n>0) { a=n%10; b=b+a*a*a; n=n/10; } if(b==t) { document.writeln("Armstrong no"); } else { document.writeln("Not an Armstrong no"); } </script> </head> </html>