Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Division in C++ Language(integer division)







In this C++ program we will calculate the division between two numbers and print the result, in the screen. The two numbers will be taken from the user.color>

input:

Two numbers. (i.e. 15,05 etc.)

output:

Devision between the given numbers will be printed on the screen.

CODE---->


#include
color>using namespace std;
main()color>
{
int a,b,div;
cout" \nEnter a Number : "color> ;
cin>>a;
cout"\nEnter another Number : " color>;
cin>>b;
div=a/b;
cout"\nThe result is : " color>color>" =color>" div color>endl color>;
system("pause") ;
}



Don't just read, write it, run it.....color>

RESULT:color>








This post first appeared on ProgramJoy.blogspot.com, please read the originial post: here

Share the post

Division in C++ Language(integer division)

×

Subscribe to Programjoy.blogspot.com

Get updates delivered right to your inbox!

Thank you for your subscription

×