title: Printf was not declared in this scope
body: <p>I have just started to learn C. But the first program in the book which i am referring generates an error that</p>
  
  <blockquote>
    <p>"printf was not declared in this scope"</p>
  </blockquote>
  
  <p>I am typing the code exactly as it is given in the book. Still the error is being given. 
  <a href="https://i.stack.imgur.com/q5vQy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q5vQy.jpg" alt="book"></a></p>
  
  <p><a href="https://i.stack.imgur.com/RAIWu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RAIWu.jpg" alt="code"></a></p>