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
DCapSurfaceDesc
c++ pure apstraction
#21
fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
VC++ latest rejects istream to nullptr comparison
dhar1
Visual C++ template instantiation
wall
VC++ Template Comment
Operators overloading