/* program explores the use of printf and scanf */ #include #include int main (void) { float f; int i,j,k,l; char mystring[40],mystring1[40]; printf("\nPlease enter a floating point number \n"); scanf("%f",&f); printf("\nThe value of f is %5.2f\n",f); printf("\nPlease enter an integer\n"); j = scanf("%i %i %i",&i,&k,&l); printf("\nThe integer is %i\n",i); printf("\nThe number of numbers entered was %i\n",j); printf("\nPlease enter a string\n"); scanf("%s %s",&mystring,&mystring1); printf("\nThe string is string1 %s string2 %s\n",mystring,mystring1); }