title: Comparing four numbers in C
body: <p>I wrote a simple digits comparison program in C, while compiling its throwing me an error message stating that   </p>
  
  <pre><code>**/tmp/ccX3X0AI.o: In function `main':
  3e.c:(.text+0x11): undefined reference to `Printf'
  collect2: ld returned 1 exit status**
  </code></pre>
  
  <p>The program is </p>
  
  <pre><code>**#include&lt;stdio.h&gt;
  
  int main()
  
  {
      int a, b, c, d ;
      Printf ( "Enter 4 numbers" ) ;
      scanf ( " Enter 1) %d, \n Enter 2) %d, \n Enter 3) %d, \n Enter 4) %d ", &amp;a , &amp;b, &amp;c, &amp;d ) ;
  
      if ( a &gt;= b )
          {
              if ( c &gt;= d )
                  {
                      if ( c &gt;= a )
                          {
                              printf ( "Enter C is Greater" ) ;
                          }
                      else 
                          {
                              printf ( "Enter A is Greater" ) ;
                          }
                  }
              else 
                  {
                      if ( d &gt;= a)
                          {
                              printf ( "Enter D is greater" ) ;
                          }
                      else 
                          {
                              printf ( "Enter A is Greater" ) ;
                          }
                  }
          }
  
      else 
          {
              if ( c &gt;= d )
                  {
                      if ( c &gt;= b)
                          {
                              printf ( "Enter C is Greater" ) ;
                          }
                      else 
                          {
                              printf ( "Enter B is greater" ) ;
                          }
                  }
              else 
                  {
                      if ( d &gt;= b )
                          {
                              printf ( "Enter D is Greater" ) ;
                          }
                      else 
                          {
                              printf ( "Enter B is Greater" ) ;
                          }
                  }
          }
  }
  **
  </code></pre>
  
  <p>I'm not sure where exactly to point the error. At the same time I'm trying to write the same code by using conditional operators in C.</p>