logoISU  

CS256 - Principles of Structured Design

Fall 2021

Displaying ./code/sternflCode/fun3.c

#include<stdio.h>
#include<string.h>


int main() {
  char name[30];
  printf("Enter a string with no spaces ");
  scanf("%s", name);
  int len = strlen(name);
  printf("string is %s and its length is %d\n", name, len); 

  return 0;
}