Hi everybody. How can I write a program with C++ that finds pattern.
For example if we give the program 3 pairs like (2,5),(5,11),(1,3) and then enter 6 the program returns 13.
note:the pattern was 2x +1.
Thank you.
mehran.s.h 0 Newbie Poster
tonymuilenburg -2 Light Poster
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.