C program for displaying a number entered by user

Assume the input is provided at run-time from the terminal. The program will receive the integer value from input device and display it on screen.

Output :

Try a variant : C program to print an integer passed from command line arguments.


♠ THINK ♠ What will happen if I enter a name like ‘Johny’ in place of an integer ? 

You may also like...

1 Response

  1. March 23, 2017

    […]  C Program for displaying a number entered by user […]

Leave a Reply

Your email address will not be published. Required fields are marked *