Вы находитесь на странице: 1из 1

Shri Madhwa Vadiraja Institute of Technology and

Management
(A Unit of Shri Sode Vadiraja Mutt Education Trust

)
Vishwothama Nagar, Bantakal 574 115, Udupi District, Karnataka, INDI
To fnd the gcd and lcm of two numbers using functions
To obtain transpose of a matrix using function, transpose( )
Write two functions to read and print a matrix. Use these two functions to add
two matrices.
PROGRAM 1: PRINT HELLO WORLD
#include <iostrea!
usin" naes#ace std$
int ain%&
'
cout << ()ello *orld+( << endl$
return ,$
-
Pro"ra .: to dis#la/ s0uare root o1 t)e "i2en nu3er
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int x = 0;
while(x < 10) {
double y = srt((double)x);
cout << !the suare root o" ! << x << ! is ! << y << endl;
x##;
$
return 0;
$
1

Вам также может понравиться