@LoganDark/

FilthyFunnySphere

C++

No description

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>

int main() {
	int sum = 0;
	int number = 1;

	do {
		std::cout << "Enter an integer: ";

		std::cin >> number;

		sum += number;
		std::cout << number << std::endl;
	} while (number != 0);
}