(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>
B. J. Armstrong was born on September 9, 1967.
B. J. Armstrong was born on September 9, 1967.
B. J. Crombeen is 31 years old (birthdate: July 10, 1985).
B. J. Ryan is 35 years old (birthdate: December 28, 1975).
B. J. Sams is 30 years old (birthdate: October 29, 1980).
J. B. Gaynor is 21 years old (birthdate: July 15, 1990).
Billy Joe "B. J." Thomas is 75 years old (birthdate: August 7, 1942).
B. J. Wilson was born on March 18, 1947 and died on October 8, 1990. B. J. Wilson would have been 43 years old at the time of death or 68 years old today.
B. J. Vorster was born on December 13, 1915 and died on September 10, 1983. B. J. Vorster would have been 67 years old at the time of death or 99 years old today.
J. B. Priestley was born on September 13, 1894 and died on August 14, 1984. J. B. Priestley would have been 89 years old at the time of death or 120 years old today.
J. B. Bury was born on October 16, 1861 and died on June 1, 1927. J. B. Bury would have been 65 years old at the time of death or 153 years old today.
J. Scott Armstrong was born on 1937-03-26.