chore: import upstream snapshot with attribution
Awesome CI Workflow / Code Formatter (push) Has been cancelled
Awesome CI Workflow / Compile checks (macOS-latest) (push) Has been cancelled
Awesome CI Workflow / Compile checks (ubuntu-latest) (push) Has been cancelled
Awesome CI Workflow / Compile checks (windows-latest) (push) Has been cancelled
Awesome CI Workflow / Code Formatter (push) Has been cancelled
Awesome CI Workflow / Compile checks (macOS-latest) (push) Has been cancelled
Awesome CI Workflow / Compile checks (ubuntu-latest) (push) Has been cancelled
Awesome CI Workflow / Compile checks (windows-latest) (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* @file
|
||||
* @brief A buzz number is a number that is either divisible by 7 or has last
|
||||
* digit as 7.
|
||||
*/
|
||||
#include <iostream>
|
||||
|
||||
/** main function */
|
||||
int main() {
|
||||
int n, t;
|
||||
std::cin >> t;
|
||||
while (t--) {
|
||||
std::cin >> n;
|
||||
if ((n % 7 == 0) || (n % 10 == 7))
|
||||
std::cout << n << " is a buzz number" << std::endl;
|
||||
else
|
||||
std::cout << n << " is not a buzz number" << std::endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user