how to cout

-1

#include using namespace std; int main() { double leashamt,collaramt,foodamt,totamt; cout<<"enter the amount spent for a leash : ";

By Beginner Wandering Worm at Jan 17 2020

-1

i need to write an int function in which there are only cout statements and if i return 0/1 it prints them too.

By Wooden Hammer Orlando Effertz at Dec 21 2020

0

#include using namespace std; int main() { int a = 3; float b = 4.5; double c = 5.25; double sum; sum = a + b + c; cout << "The sum of a, b, and c is", sum << endl; return 0; }

By Wooden Hammer Rita Larson at Dec 22 2019


Related code examples


Code examples by languages