- 1

if else structure

write a c++ program that reads two numbers, the program should test the first number whether it is multiple of the 2nd number using if else structure..???

5th Jul 2017, 7:23 PM
RiGeL
RiGeL - avatar
6 Antworten
+ 5
Why?
5th Jul 2017, 7:27 PM
AgentSmith
+ 2
dear i dont mean to challege you, i just need your help about how to write the program, i brought that question from a source and i have no idea about the answer,, if u help me i would be glad..thank u all..
5th Jul 2017, 9:11 PM
RiGeL
RiGeL - avatar
+ 2
umm by user input you mean cin right?
5th Jul 2017, 9:21 PM
RiGeL
RiGeL - avatar
+ 2
#jamie your idea was so helpful; thank you very much i am gonna try it.
6th Jul 2017, 8:51 AM
RiGeL
RiGeL - avatar
+ 1
yes i know how to get it😊
5th Jul 2017, 9:23 PM
RiGeL
RiGeL - avatar
+ 1
yes the modulus operator shows us the reminder resulting from a division ..for example 7%2 is eqaul to 1
5th Jul 2017, 9:36 PM
RiGeL
RiGeL - avatar