[ create a new paste ] login | about

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

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

int main()
{ 
   int x; 
   x=10;
   printf("Type an integer value:");
   scanf("%d",'&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);
      else
          printf("The value %d is equal to 10.\n",x);
   }
       
   return(0);
}

     


Output:
1
Type an integer value:The value 10 is equal to 10.


Create a new paste based on this one


Comments: