Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int num;
- int count;
- int test = 0;
- int main()
- {
- cin>> num;
- for (int count = 0; count < num; count++)
- if (count % 4 == 0)
- (test++);
- else
- cout<<"";
- return 0;
- }
- cout << test;
- getch(); // use this so the console won't close automatically
- return 0;
- int main()
- {
- cin>> num;
- cout << num/4;
- getch(); // use this so the console won't close automatically
- return 0;
- }
- #include<iostream>
- using namespace std;
- int main()
- {
- int num;
- cin>> num;
- cout<< num<<" is divisible by 4 "<< (num>>2) <<" time"<<(num>>2>1?"s":"") <<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement