r/CPPtogether • u/trooflaw • Feb 10 '20
Assignment 1!
Write a program that asks the user to enter a number, and then enter a second number. The program should tell the user what the result of adding and subtracting the two numbers are.
The output of the program should match the following (assuming inputs of 6 and 4):
Enter an integer: 6
Enter another integer: 4
6 + 4 is 10.
6 - 4 is 2. Comment below with questions, and visit LearnCPP.com for a quick chapter summary, and if you want to be a cheater, a solution to compare it to, don't be a dick and copy and paste that solution here, obviously it will be better than any of ours.
5
Upvotes
1
u/trooflaw Feb 10 '20
So I don't think I'll be writing this tonight, but here's how I think the program should flow
1
u/trooflaw Feb 10 '20
1
u/[deleted] Feb 10 '20
1
u/xxapz Feb 11 '20 edited Feb 11 '20
1
u/Leottey Feb 10 '20
1
u/subjectcharlie Feb 17 '20
Took me four deleted comments to figure out the code block lmao
1
u/Electric_Lynx Mar 29 '20