0

How do i write this?

Write a program that declares two floating numbers. Initialize them with float values. Then print their sum and multiplication in two separate lines

22nd Dec 2016, 8:49 AM
Gilchrist Miguel
2 Answers
+ 3
#include<iostream> using namespace std; int main() { float x=99.79; //float x=99.79,y=623.27; float y=623.27; cout<<"Sum : "<<x+y<<endl; cout<<"Multiplication : "<<x*y<<endl; return 0; }
22nd Dec 2016, 9:34 AM
Doolitha Samaranayake
Doolitha Samaranayake - avatar
+ 2
Dont be hurry, and don't hesitate to redo and redo curses, go elsewhere to experiements differents approachs... Basic concepts could not to be evident at begining, but end by be digested ;) And tell you that more you get hard to search and finally understant, more and better you learn, instead of asking for solution too quickly ^^
22nd Dec 2016, 9:01 AM
visph
visph - avatar