[ create a new paste ] login | about

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

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

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

     


Output:
1
Type an integer value:The value 105 is  greater than, is not equal to 10.


Create a new paste based on this one


Comments: