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.
#include <stdio.h>
#define MAX 20
int main()
{
char foo[MAX];
fgets(foo, MAX, stdin);
printf("string: %s\n", buf);
return 0;
}
Comments
Leave a comment