diff --git a/.DS_Store b/.DS_Store index 39daaec68..50e1f7cb6 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Buzz_number.cpp b/Buzz_number.cpp new file mode 100644 index 000000000..3d39c50f6 --- /dev/null +++ b/Buzz_number.cpp @@ -0,0 +1,17 @@ +//A buzz number is a number that is either divisble by 7 or has last digit as 7. +#include +using namespace std; +int main() +{ + int n,t; + cin >> t; + while(t--) + { + cin >> n; + if((n%7==0)||(n%10==7)) + cout << n << " is a buzz number" << endl; + else + cout << n << " is not a buzz number" << endl; + } + return 0; +}