+ 1
When i run the program all are greatest
#include <stdio.h> int main() { int a,b; printf("enter the values of int a,b"); scanf("%d%d",&a,&b); if(a>=b); printf("the greatest is %d",a); if(b>=a); printf("the greatest is %d",b); }
4 Respostas
+ 9
maureen kirotich your code is incomplete please attach the complete code and what you want to achieve with the code so we can help you out.
+ 3
Remove the semicolons after the if() statements and swap the second one with an if else() or even better an "else" (with no condition)
+ 1
seems it’s not complete yet, and remove ; by the end
0
Have you completed it ?