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

Commit6723593

Browse files
committed
add 65th example of 'User-Input' in C++
1 parent1d4d49d commit6723593

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

‎a.out‎

48 Bytes
Binary file not shown.

‎example05.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ int main(){
1212
cin>> x;
1313
cout<<"Enter 2nd Number :";
1414
cin>> y;
15-
cout<<"Sum is" << x-y <<endl;
15+
cout<<"Sum is" << x*y <<endl;
1616
}

‎example06.cpp‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// ================================================
2+
// Language: C++ / Cpp
3+
// Topic : [User-Input]
4+
// Example : 👉👉 [6]
5+
// ================================================
6+
#include<iostream>
7+
usingnamespacestd;
8+
intmain(){
9+
float 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+
}
17+
18+
// ==================== Best Way ===============

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp