Add files via upload

This commit is contained in:
Christian Bender
2017-12-23 18:30:49 +01:00
committed by GitHub
parent 220c0fbaf8
commit 4b7d334c6e
31 changed files with 2290 additions and 0 deletions

17
Others/Buzz_number.cpp Normal file
View File

@@ -0,0 +1,17 @@
//A buzz number is a number that is either divisble by 7 or has last digit as 7.
#include <iostream>
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;
}