Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void){
- int i;
- for(i=0; i <=10; i++){
- int r = 1 + i;
- if(r%2 != 0){
- printf("%d is odd number\n",r);
- }else{
- printf("%d is even number\n",r);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement