0
With C++ console-based how do i create two random numbers consisting of three digits each to be added in columnar format?
Then prompt user to enter answer and if answer is correct to say correct and if not to say not correct.
1 Antwort
+ 1
int num = rand()% 900 +100;
num should be [(0+100), (899+100)]
so a 3 digit number.
in num = 593
to get 5, num/100
to get 9, (num/10)%10
to get 3, num%10
not sure what "adding in columnar format" is
if you do and still need help. please reply more specific task!
hope this helps!!