C PROGRAM THAT DISPLAY SERIES OF EVEN NUMBER FROM N TO M ACCEPT THE VALUE OF N AND M FROM KEYBOARD - 6 Players blogs for technology

give us your feedback

People Online

Breaking

ads

Post Top Ad

Thursday, May 16, 2019

C PROGRAM THAT DISPLAY SERIES OF EVEN NUMBER FROM N TO M ACCEPT THE VALUE OF N AND M FROM KEYBOARD



#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n,m,i;
    printf("\n\t enter the value of n = ");
    scanf("%d",&n);
    printf("\n\t enter the value of m = ");
    scanf("%d",&m);
    printf("\n\t the number between %d and %d are \n\t",n,m);
    for(i=n;i<=m;i+=2){

        printf("\n\t %d",i);
    }

    return 0;
}

No comments:

Post a Comment

ads1

Post Top Ad