Login to ask a question from C Programs on integers

C Program to Accept two Integers and Check if they 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

void main()

{

    int m, n;

 

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

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

    if (m == n)

        printf("M and N are equal\n");

    el....

Show More
Previous Question Next Question
🔗

Similar Questions

From C Programs on integers · C programming

View All
WhatsApp