Divide C++

//program that read the value of two integers and divides them //Giame Carlos Fajardo Santos #include <iostream> using namespace std; main(){ int FthNum,SndNum,ResNum; cout<<"-------------Program that divides two integers------------\n"; cout<<"Type the firt number.......:";cin>>FthNum; cout<<"Type the second number......:";cin>>SndNum; ResNum=FthNum/SndNum; cout<<"La Division es.......:"<<ResNum; system("pause"); }
This is a simple sample that shows you how to
print on a screen,
ask user for introducing a value,
store in a variable and
print a variable's value.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.