[C] Is it possible to make a condition that checks what type of input the user gives? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

[C] Is it possible to make a condition that checks what type of input the user gives?

Let’s say I want to make a program that converts Roman numerals to numbers and vice versa, but I only want the user to input once. This means that if they input a character or a string, it’s converted to an integer value, but if they input an integer, it’s converted to Roman numerals.

24th Jun 2019, 6:39 PM
Zerokles
Zerokles - avatar
1 Answer
+ 3
you can surely do that, with strung functions, by including string header and using the specific functions you need
24th Jun 2019, 7:02 PM
✳AsterisK✳
✳AsterisK✳ - avatar