Explore BrainMass
Share

Explore BrainMass

    Writing Strings and Integers in C Programs

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    I am trying to write a C program that accepts a string and two integer numbers from a user. Each of these inputs should be preceded by a prompt and stored using individual variable names.

    Then I am trying to have the program call a function that assembles the input data into a single string, then display the assembled string using the puts() call command. Please help me with these tasks.

    © BrainMass Inc. brainmass.com October 10, 2019, 3:48 am ad1c9bdddf
    https://brainmass.com/computer-science/c/writing-strings-integers-c-programs-436209

    Solution Preview

    Hi,

    You may do something like this...

    ----------------

    //use angular brackets instead of " " for stdio.h.
    #include ...

    Solution Summary

    The solution provides a method to computing a C program that accepts a string and two integer numbers from a user and assembles the input data into a single string.

    $2.19