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

Commitefa5da3

Browse files
committed
add 3rd example of 'User-Input' in C++
1 parent1416321 commitefa5da3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎a.out‎

0 Bytes
Binary file not shown.

‎example03.cpp‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,15 @@
22
// Language: C++ / Cpp
33
// Topic : [User-Input]
44
// Example : 👉👉 [3]
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