Program http://prntscr.com/lc1psl
@Ultrilliam
Any ideas on how to start?
@MARC
Is it correct? :O
Not quite, it first wants someone to give the univ, name, gender throw those into variables, printf the name and univ, do a if check for gender (which should be either m or f), if it equals neither printf a error If it's m, printf what it says, otherwise printf the female one. Make sense? Also for any future people I'm going to attach the image in the question here.
yeah,makes sense aite,editing again XD
rename the 'gender' variable because you can only declare it once. You can do char genderMale = 'F'; char genderFemale = 'M;
While true^ That's still unnecessary since it's unnecessary towards the end goal to even define it as F or M
(Except when given by the user)
"hu" instead of "hi"
I tried that myself with https://www.onlinegdb.com/online_c_compiler But it didn't display my 'name' correctly. I've like never used the gets() function, all I use is scanf.
Have you tested the code with your own compiler?
^I actually didn't test, because I didn't want to type it out (cause I'm actually coding something right now) x'D \```c code here \``` ^For future reference pls
yeah,I did It works :D
Thanks Ultrilliam and mhchen
No problem :)
```c int main(){ } ``` oh cool
Join our real-time social learning platform and learn together with your friends!