Division of two numbers using C

Question - 
Given two numbers , your task is divide first by second where second is not equal to 0.
Example - 
Input : 2, 3
Output : sum is : 5
Input :  45, 10
Output : sum is : 55

Approach - 
we solve this question with the help of basic maths.

Implementation -
#include <stdio.h>

#include <stdio.h>

int main()
{
    float num1,num2;
    float division;
    printf("Enter first numbers : ");
    scanf("%f",&num1);
    printf("Enter second numbers : ");
    scanf("%f",&num2);
    division=num1/num2;
    
    printf("Answer is : %f",division);

    return 0;
}

Comments