Showing posts with label 1 246 13579. Show all posts
Showing posts with label 1 246 13579. Show all posts

9.25.2015

Odd and Even Number Pattern Program In C

Q. Write a Odd and Even number pattern in C language as following:

    1
    2 4 6
    1 3 5 7 9
    2 4 6 8 10 12 14
    1 3 5 7  9 11 13 15 17

Ans.

/* even odd number pattern program in c*/
#include<stdio.h>
int main()
{