Chapter:

C-Programs-on-integers

C Program to Accept two Integers and Check if y are Equal:

This is a C program to accept two integers and check if they are equal.

Problem Description

This program accepts two integers and check if they are equal or not.

Problem Solution

  • Take the two integers as input.

  • Using if,else statements check if they are equal or not.

  • Print the output accordingly and exit.

Program/Source Code

/*

 * C program to accept two integers and check if they are equal

 */

#include <stdio.h>

void main()

{

    int m, n;

 

    printf("Enter the values for M and N\n");

    scanf("%d %d", &m, &n);

 &nbs....

Show More

All Chapters

View all Chapter and number of question available From each chapter from C-programming-