Write a program that accepts two integers from the user, if any of the integers follow the other, print “ a follow b” otherwise print “***”.
amani_1 0 Newbie Poster
Recommended Answers
Jump to PostWhy is this title in another language and the post is written in English?
Also, on topic, what have you tried yourself?
Jump to PostI would create a temp variable where I would add '1' to be first variable. Then I would compare this with the second variable if they are the same I would print the 'a follow b' message.
All 5 Replies
phorce 131 Posting Whiz in Training Featured Poster

iamthwee
Alula alex 0 Newbie Poster
Learner010 99 Posting Whiz in Training

Warrens80
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.