Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d4d49d

Browse files
committed
add 5th example of 'User-Input' in C++
1 parent0701170 commit1d4d49d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎example05.cpp‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// ================================================
2+
// Language: C++ / Cpp
3+
// Topic : [User-Input]
4+
// Example : 👉👉 [5]
5+
// ================================================
6+
#include<iostream>
7+
usingnamespacestd;
8+
intmain(){
9+
int x;
10+
int y;
11+
cout <<"Enter 1st Number :";
12+
cin>> x;
13+
cout<<"Enter 2nd Number :";
14+
cin>> y;
15+
cout<<"Sum is" << x-y <<endl;
16+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp