Write a program that accepts two integers from the user, if any of the integers follow the other, print “ a follow b” otherwise print “***”.

Recommended Answers

All 5 Replies

Why is this title in another language and the post is written in English?

Also, on topic, what have you tried yourself?

Member Avatar for iamthwee

I 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.

i like to write a c++ code that receives an integer number and display the sum of the number and its rverse integer(for example, receives 123and display 123+321=444)using while loop

if any of the integers follow the other, print “ a follow b” otherwise print “***”

please explain this statement with appropriate example.And also don't forget to post your code here what you have so far for this.Then it will be easier for us to provide assistance.

Member Avatar for Warrens80

I don't understand the question.

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.