All rights are reserved by Niteesh Kumar.. Theme images by Storman. Powered by Blogger.

Followers

Total Pageviews

Blog Archive

Follow by Email

Translate

Monday, 10 November 2014

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-


0 on: "C++ program to divide numbers."