C++ program to divide numbers.

you can also divide numbers having decimal point using this program.

c++ code -


#include<iostream.h>

#include<conio.h>

void main()

{

       clrscr();

       float a,b,c;

       cout<<"\n enter a=";

       cin>>a;

       cout<<"\n enter b=";

       cin>>b;

       c=a/b;

       cout<<"\n  division="<<c;

       getch();

 }



OUTPUT

 enter a=56

 enter b=7

 division=8



Similar posts-


Comments :

Post a Comment