This is a piece of code I'm writing while taking CS50. I'm writing this code in CS50 IDE in C. I want to make it such that I can input a name or a number without having to write seprate code for each, but I don't know how to do that. Any help would be much appreciated. Thank you.
#include<cs50.h>
#include<stdio.h>
int main(void)
{
printf("Name: \n");
string name1 = get_string();
if (name1 is in, int name1 = get_int())
;
printf("Nice, %s\n", name1);
}