Skip to content

Commit 3f96044

Browse files
committed
change variable declaration to meet conventions
1 parent 6134e5b commit 3f96044

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

files/arith4.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <iostream>
22

33
int main() {
4-
int a, b;
4+
int a;
5+
int b;
56

67
std::cout << "Gebe eine Zahl ein: ";
78
std::cin >> a;

files/debugger.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#include <iostream>
22

33
int main() {
4-
int a, b, c;
4+
int a;
5+
int b;
6+
int c;
57

68
std::cout << "Gebe eine Zahl ein: ";
79
std::cin >> a;

files/if.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <iostream>
22

33
int main() {
4-
int a, b;
4+
int a;
5+
int b;
56

67
std::cout << "Gebe eine Zahl ein: ";
78
std::cin >> a;

0 commit comments

Comments
 (0)