Why does this accept invalid input?

前端 未结 5 2175
一个人的身影
一个人的身影 2020-12-22 09:52

I have a triangle program in c

#include 

// A function which decides the type of the triangle and prints it
void checkTriangle(int s1, int s         


        
5条回答
  •  无人及你
    2020-12-22 09:58

    Read the input into a string buffer. Parse the string to extract numeric values be of any kind one by one.

提交回复
热议问题