Friday, 12 June 2015

Taking user inputs.

WAP  that will take an input and display it on the screen.

#include <stdio.h>
#include <conio.h>
 void main()
{
   int a;  //Declaring Variable.
  printf("enter any number for an input\n")//Printing Message on Screen
  scanf("%d",&a);  //Getting Input.
  printf(“\n the entered number is %d”,a);   //Printing Message on Screen
  getch();   //Getting a chracter or waiting for key press.
}
Output:


Video Explanation
Sorry Guys Explanation of this tutorial will be posted later this month.

No comments:

Post a Comment