>>61 わざわざありがとうございます!!
これは学校の課題なのです
家ではUNIXがないので結果確認は出来ませんがよろしく
おねがいします
このプログラムをgcc → ./a.out とすると
文字が入力できるのですがそれ以降の操作がわかりません
#include <stdio.h>

int main(){
int c;
   int width, maxwidth = 0;
while((c == getchar()) != EOF){
if(c == '\n){
if(width > maxwidth)
maxwidth = width;
width = 0;
}
else width++;
}
printf(``%d\n``, maxwidth);
return 0 ; 

です