Answer to Question #276074 in C++ for Kaneki

Question #276074

What can be used instead of scanf and print f and the text written inside such as %2d. Knowing that we are only allowed to use math. H library. And we have only done else if statements, switch statements, for while loops and 1d 2d arrays.


1
Expert's answer
2021-12-06T16:43:44-0500
#include <stdio.h>
#define MAX 20
int main()
{
    char foo[MAX];
    fgets(foo, MAX, stdin);
    printf("string: %s\n", buf);
  
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment