#The code to solve a linear equation in python

import numpy as np

a=np.array([[1,1],[1.5,4])

b=np.array([2200,5050])

#Using the solve function in numpy

x=np.solve(a,b)

#Using the inverse of a

v=np.linalg.inv(a).dot(b)

#Now when you check both x and v values are same but when you perform x==v you will get an entirely...

Two functions may give the same result or Does it??? Think before you Type!!!]]>

the print r8,1 is printing blank answer

Code:

section .data msg1 db "File Handling Menu",10 db "1.Find Character Occourence",10 db "2.Find Blank Spaces",10 msg1_len equ $-msg1 msg2 db "Enter The Name Of The File" ,10 msg2_len equ $-msg2...

Code:

#include <iostream> using namespace std; int main() { int n,rem,s=0; cout<<"Enter the digits :"; cin>>n; while(n>0) { rem=n%10; s=s+rem; n=n/10; } cout<<"Sum of digits = "<<s<</n; return 0; }

g++ -Wall -c "untitled.cpp" (in...

C++ Program to find the sum of digits of an integer number]]>