- 1
Can you Write a program in c++ to display day name using IF....ELSE
3 odpowiedzi
+ 1
you can use my answer in your previous question just replace the cases
with this
// we calculated day
days[]=["Sunday",....]
cout<<days[day]
so need of if else as output is direct
however you can use nested ifs just put if else if else in place of cases
0
yes
0
That would be complicated, but I've done it.