SlideShare a Scribd company logo
1 of 1
#include <iostream>
using namespace std;
int change(int x);
int main()
{
int y=3,z;
cout<<change(y)<<endl;
z=change(5);
cout<<'t'<<z<<endl;
return 0;
}
int change(int x)
{
cout<<x+2<<endl;
x++;
return x;

More Related Content

What's hot

Prof.js
Prof.jsProf.js
Prof.jsuupaa
 
[KOSSA] C++ Programming - 14th Study - template
[KOSSA] C++ Programming - 14th Study - template[KOSSA] C++ Programming - 14th Study - template
[KOSSA] C++ Programming - 14th Study - templateSeok-joon Yun
 
[170510 4주차]C언어 A반
[170510 4주차]C언어 A반[170510 4주차]C언어 A반
[170510 4주차]C언어 A반arundine
 
contoh Program C++ tentang fungsi for
contoh Program C++ tentang fungsi forcontoh Program C++ tentang fungsi for
contoh Program C++ tentang fungsi forM Fahmi Ansori
 
Tugas kelompok 3.3
Tugas kelompok 3.3Tugas kelompok 3.3
Tugas kelompok 3.31300018075
 
exercise of basic computer programming.docx
exercise of basic computer programming.docxexercise of basic computer programming.docx
exercise of basic computer programming.docxmiftah88
 
Tugas kelompok 3.5
Tugas kelompok 3.5Tugas kelompok 3.5
Tugas kelompok 3.51300018075
 
Form Pemesanan Tiket dengan Java NetBeans
Form Pemesanan Tiket dengan Java NetBeansForm Pemesanan Tiket dengan Java NetBeans
Form Pemesanan Tiket dengan Java NetBeansAldila Putri
 
C++ Programming - 13th Study
C++ Programming - 13th StudyC++ Programming - 13th Study
C++ Programming - 13th StudyChris Ohk
 
Understanding Python decorators
Understanding Python decoratorsUnderstanding Python decorators
Understanding Python decoratorsJosipKatalinic
 

What's hot (17)

Program brian
Program brianProgram brian
Program brian
 
Prof.js
Prof.jsProf.js
Prof.js
 
[KOSSA] C++ Programming - 14th Study - template
[KOSSA] C++ Programming - 14th Study - template[KOSSA] C++ Programming - 14th Study - template
[KOSSA] C++ Programming - 14th Study - template
 
Kelompok 2.5
Kelompok 2.5Kelompok 2.5
Kelompok 2.5
 
PHP Profiling
PHP ProfilingPHP Profiling
PHP Profiling
 
[170510 4주차]C언어 A반
[170510 4주차]C언어 A반[170510 4주차]C언어 A반
[170510 4주차]C언어 A반
 
Hello world
Hello worldHello world
Hello world
 
for loops
for loopsfor loops
for loops
 
Php Meets Messagepack
Php Meets MessagepackPhp Meets Messagepack
Php Meets Messagepack
 
Clear all
Clear allClear all
Clear all
 
contoh Program C++ tentang fungsi for
contoh Program C++ tentang fungsi forcontoh Program C++ tentang fungsi for
contoh Program C++ tentang fungsi for
 
Tugas kelompok 3.3
Tugas kelompok 3.3Tugas kelompok 3.3
Tugas kelompok 3.3
 
exercise of basic computer programming.docx
exercise of basic computer programming.docxexercise of basic computer programming.docx
exercise of basic computer programming.docx
 
Tugas kelompok 3.5
Tugas kelompok 3.5Tugas kelompok 3.5
Tugas kelompok 3.5
 
Form Pemesanan Tiket dengan Java NetBeans
Form Pemesanan Tiket dengan Java NetBeansForm Pemesanan Tiket dengan Java NetBeans
Form Pemesanan Tiket dengan Java NetBeans
 
C++ Programming - 13th Study
C++ Programming - 13th StudyC++ Programming - 13th Study
C++ Programming - 13th Study
 
Understanding Python decorators
Understanding Python decoratorsUnderstanding Python decorators
Understanding Python decorators
 

How

  • 1. #include <iostream> using namespace std; int change(int x); int main() { int y=3,z; cout<<change(y)<<endl; z=change(5); cout<<'t'<<z<<endl; return 0; } int change(int x) { cout<<x+2<<endl; x++; return x;