HI guys,
this is just a fun little program im kinda bored and working on learning more about C, anyways the program is just supposed o mess with a couple of my buddies so it looks like kinda intelligent lol anyway my question is how can i make it so when they enter thier name and i store that as a variable how can i get that to display like i have it below in the program ive tried; int. float, char, what can i do to have this display a name without any extra characters or cutting off their names?
Code:
#include<stdio.h>
int main(void)
{
int a, b;
printf("hello, im CPU, by Russ the first program to express emotions! Whats your name?\n");
scanf("%d", &a);
printf("\nnice to meet you", a);
printf("\nHows your day going so far?");
scanf("%d", &b);
Thanks guys