- 3

Please type in a code to print to the screen the value of x divided by y. int x = 81; int y = 3; ______<< x ________ y

Help

26th Jun 2018, 11:20 AM
Md Eyasin Ali
Md Eyasin Ali - avatar
7 Respostas
+ 3
#include <iostream> using namespace std; int main(){ int x = 81; int y = 3; cout<<x/y; return 0; }
26th Jun 2018, 1:41 PM
Shahil Ahmed
Shahil Ahmed - avatar
+ 2
cout << x / y; that is, if you want integer divisions.
26th Jun 2018, 11:36 AM
hinanawi
hinanawi - avatar
0
cout<<x/y;
26th Jun 2018, 1:20 PM
Lalit Jarwal
Lalit Jarwal - avatar
0
cout<<x/y;
22nd Jul 2018, 9:56 AM
Nandan Vyavahare
Nandan Vyavahare - avatar
0
//A code to print to the screen the value of x divided by y. int x = 81; int y = 3; cout<< x /y << endl;
23rd Sep 2020, 12:13 PM
Ajit Kumar
Ajit Kumar - avatar
0
29th Nov 2021, 10:39 AM
Abror
0
29th Nov 2021, 10:42 AM
Abror