OneCompiler

cách dùng void

72

void là để tối ưu code

#include <bits/stdc++.h>
using namespace std;

long long a;

void tinh() { // void luôn để trước int main
cout << a;
}

int main()
{
cin >> a;
tinh();
return 0;
}