10 Réponses
+ 4
It's little hard when you have to give multiple inputs... so use another ide for c
+ 5
int age; //not an array
scanf("%d",&age);
printf ("%s is my name and lam %d years olds\n",myname,age); // missing comma
+ 3
On sololearn you have to give input first not in run time...
Do this...
When that window comes for input write your name give space and then your age.. like
Everything 32
+ 2
Change int age[2]; to int age;
+ 2
Remove int age[15] ..and use int age; only you don't need to use an array for age it can be easily done by using int
+ 1
I just started coding recently so I have a lot of things to learn and use.
0
Oh tnx but why it showed strange numbers?it didn't ask the num
0
But it doesn't ask my age
0
I can't type the num because it will type it next to the name
0
Wow it works.....
Ah thank you so much