Write a program to add, multiply, divide and subtract two numbers | CODE WITH SHARAD

Write a program to add, multiply, divide and subtract two numbers

Written by Sharad Raj on 13th of March, 2018

BASIC PROGRAMS   C LANGUAGE PROGRAMS

PROGRAM CODE

#include<stdio.h>

#include<conio.h>

void main()

{

float x,y,m,a,s,d;

clrscr();

printf(enter any two numbers : );

scanf(%f%f,&x,&y);

a=x+y;

d=x/y;

m=x*y;

s=x-y;

printf(“\n Addition = %f \nSubstraction of %f-%f = %f\n Multiplication = %f\nDivision = %f,a,x,y,s,m,d);

getch();

}


Comments


Contact