[ create a new paste ] login | about

Link: http://codepad.org/x7aHpwH7    [ raw code | output | fork ]

kamarakay2000 - C, pasted on Jul 8:
#include <stdio.h>
int main() 
{
    int a;
   // a = 20;
    printf("Type an inter:");
    scanf("%d",&a);
    printf("You type %d.\n",a);
    if(a > 10)
    {
       printf("%d is greater than10.\n",a);
    }
    if(a < 10)
    {
       printf("%d is less than 10.\n",a);
    }
    else
    {
       printf("%d is not equal  to 10.\n",a);
    }
    return(0);
}


Output:
1
2
3
Type an inter:You type 134513565.
134513565 is greater than10.
134513565 is not equal  to 10.


Create a new paste based on this one


Comments: