Skip to main content

How To Write Program To Divide Two Numbers In C | Programming In C

Divide Two Numbers in C

Divide Two Numbers in C

This program prompts the user to enter two numbers and divides them.


#include <stdio.h>

int main()
{
    int x, y;
    printf("Enter the value of x\\n");
    scanf("%d", &x);

    printf("Enter the value of y\\n");
    scanf("%d", &y);

    printf("The result is %d\\n", x / y);
    return 0;
}
        

Comments

Popular posts from this blog

Redmi 9 Specifications Tipped by US FCC Site Listing Ahead of Launch

Redmi 9 launch has so far been a mystery. Xiaomi seems to have received a certification from the US Federal Communications Commission (FCC) for a smartphone with a model number M2004J19G that is so far believed to be the Redmi 9. The certification, which has been listed online, suggests some of the Redmi 9 specifications. It also shows that the new Redmi phone runs MIUI 11, hinting at Android 10 support out-of-the-box. The new development comes just days after Xiaomi's RF exposure webpage suggested the existence of the Redmi 9. As per the documents available on the FCC site, the Redmi phone carrying the model number M2004J19G has received the certification on May 1. This suggests that the new phone would debut soon. Redmi 9 specifications (expected) In addition to the certification date, the FCC listing shows the key specifications of the Redmi phone with the model number M2004J19G that has so far been in the news as the Redmi 9, as initially reported by tec...

Aarogya Setu App | How To Download & Use Coronavirus Aarogya Setu App

-: Coronavirus Aarogya Setu App | How To Download & Use Coronavirus Aarogya Setu App :- In This Blog You Will Know How To Download & Use Coronavirus Aarogya Setu App So Let's Get Started.  Prime Minister Narendra Modi has extended the lockdown  extended throughout the country till 3 May to fight the  coronavirus today. This was announced by the Prime Minister  (PM Modi) while addressing the nation at 10 am today.  Simultaneously, PM Modi (PM Narendra Modi) appealed to  the public to download Arogya Setu Mobile App  (Aarogya Setu Mobile Apps) to help prevent the spread of  Coronavirus Disease (COVID-19).   How To Download Aarogya Setu App ?   The Arogya Setu Mobile App of the Government of India is available on both Android and iPhone Platforms.  This app can help you find out about your location and the corona positive people around you and  the risk of infection after some questions asked b...

Mini Militia Doodle Army 2 Latest Apk Download For Free

You’re just few step away from downloading Mini Militia. For Android Users:   For Latest Tech News, Gaming News, Tutorials, Tips & Tricks And Many More Entertaining Contents Subscribe to Our Page & Join Us On FACEBOOK , TWITTER , INSTAGRAM & YOUTUBE . THANKS FOR YOUR VISIT .