[ create a new paste ] login | about

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

kamarakay2000 - C, pasted on Jul 28:
#include <stdio.h> 
void evaluate(int x);

int main()
{
   int i,x; 
   //x = i; 
   x=0;
   printf("Type an integer value:");
   scanf("%d",'%i');
   //evaluate(i);
   void evaluate(int x);
   {  
      if(x < 10) 
          printf("The value %d is less than 10.\n",'x');
      else if(x > 10)
          printf("The value %d is greater than 10.\n",'X');
   }
       
   return(0);
}

     


Output:
1
Type an integer value:The value 120 is less than 10.


Create a new paste based on this one


Comments: