Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
even number
//clang 6.0.0 #include <stdio.h> int main() { int counter; printf("Even numbers between 1 to 100\n"); /* * Initialize counter with 1, and increment it in every iteration. * For every value of counter check whether it is even number or * not and print it accordingly */ for(counter = 1; counter <= 100; counter++) { /* Even numbers are divisible by 2 */ if(counter%2 == 0) { /* counter is even, print it */ printf("%d ", counter); } } return 0; }
run
|
edit
|
history
|
help
0
STL Stack, C ++
for_each_argument
Dash-D compiler flag example
INHERIT_CTORS default constructor
Linker error while passing constexpr variable as const &
Class operator overloading the subscript and boundary check for array
my override
2574 EC
ECE2574_Function_Calling_Example
Combination