Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Problem_onoff_3
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x#include<iostream> //code compile on visual studio 2013 using namespace std; void main(void) { int a, number, Multiple; cout << "Please enter the number from 1 to 100" << endl; cin >> number; if (number % 3 == 0 && number % 5 == 0) { cout << "onoff" << endl; } else if (number % 3 == 0) { cout << "on" << endl; } else if (number%5 == 0) { cout << "off" << endl; } else { cout << number << endl; } getchar(); }
run
|
edit
|
history
|
help
0
program_solution_3
trying to find if reinterpret_cast preserves calling convention
enable_if::type
C++ standard violation: [templates][explicit instantiation][access checking]
C++ quine
Generic EventProvider
VS'15 parameter pack sfinae
upper_bound With binary_function Visual Studio 2008 Bug?
Noexcept
Sum of numbers in a series using sum formular