Skip to content

Commit 27b5777

Browse files
author
ybygjylj
committed
commit
0 parents  commit 27b5777

File tree

12 files changed

+70
-0
lines changed

12 files changed

+70
-0
lines changed

1.1/test1.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
int main(){
2+
return 0;
3+
}

1.1/test1.out

16 KB
Binary file not shown.

1.1/test2.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
int main(){
2+
return -1;
3+
}

1.1/test2.out

16 KB
Binary file not shown.

1.2/test1.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include <iostream>
2+
int main(){
3+
std::cout << "Hello, world" << std::endl;
4+
}

1.2/test1.out

16.9 KB
Binary file not shown.

1.2/test2.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <iostream>
2+
int main()
3+
{
4+
std::cout << "Enter two numbers" << std::endl;
5+
int v1 = 0, v2 =0;
6+
std::cin >> v1 >> v2;
7+
std::cout << "The product of " << v1 << " and " << v2
8+
<< " is " << v1 * v2 << std::endl;
9+
return 0;
10+
}

1.2/test2.out

17 KB
Binary file not shown.

1.2/test3.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <iostream>
2+
int main()
3+
{
4+
std::cout << "Enter two numbers";
5+
std::cout << std::endl;
6+
int v1 = 0, v2 =0;
7+
std::cin >> v1;
8+
std::cin >> v2;
9+
std::cout << "The product of ";
10+
std::cout << v1;
11+
std::cout << " and ";
12+
std::cout << v2;
13+
std::cout << " is ";
14+
std::cout << v1 * v2;
15+
std::cout << std::endl;
16+
return 0;
17+
}

1.2/test3.out

17 KB
Binary file not shown.

0 commit comments

Comments
 (0)