Write a program to accept a number and display it.

/* Write a program to accept a number and display it */

#include <stdio.h>

#include <conio.h>

void main(void)

{

    int n;

    printf("Enter the number : ");

    scanf("%d",&n);

    printf("The number you have entered is %d\n",n);

    getch();

}

Comments

Popular posts from this blog

Write a program to accept numerator and denominator and find the remainder without using modulus (%) operator using do..while loop.