Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <conio.h>
- void main ()
- {
- float L, M;
- char ch;
- do
- {
- cout << "\nEnter L: ";
- cin >> L;
- cout << "Enter M: ";
- cin >> M;
- cout << "\nL+M= " << L+M;
- cout << "\nL-M= " << L-M;
- cout << "\nL*M= " << L*M;
- if (M != 0)
- cout << "\nL/M= " << L/M;
- cout << " \n Do Again (y/n): ";
- cin >> ch;
- }
- while (ch != 'n');
- getch ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement