Powered by Blogger.

Sunday, March 17, 2013

8.How if and else work in program:

#include<stdio.h>
int main()
{
    int i,j;
    printf("Enter any number of yiur choice:");
    scanf("%d%d",&i,&j);
    if(i>j)
    printf("i is greater than j");
    else
    printf("i is smaller than j");
    return 0;
}

0 comments:

Post a Comment