FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpp-programming/OOP1-Lab5/Source1.cpp at main · Doanhdz/cpp-programming · GitHub
Doanhdz
/
cpp-programming
Public
forked from
Rustam-Z/cpp-programming
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp-programming
/
OOP1-Lab5
/
Source1.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (15 loc) · 559 Bytes
Breadcrumbs
cpp-programming
/
OOP1-Lab5
/
Source1.cpp
Copy path
File metadata and controls
16 lines (15 loc) · 559 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//
Practical Lab Assignment-7(Week 9)
//
ID:U1910049 Name:Rustam Zokirov
//
Program to swap two values using functions
#
include
<
iostream
>
#
include
<
math.h
>
//
C++ libriry which is calculating "pow" and PI=3.14
using
namespace
std
;
int
main2
(){
int
a, b;
cout <<
"
Enter two numbers:
"
;
cin >> a >> b;
swap
(a, b);
//
C++ function to swap two numbers
cout << a <<
"
&
"
<< b << endl;
//
swap is the function which is contained in c++ ==>
//
==> there is no need to open new function to swap
return
0
;
}
//
ending the function main
Back
|
FazBrowse Home
|
New Git URL