#include <stdio.h>
#include <stdlib.h>
what's wrong?
int main()
this is the code
{
char planet;
char earth;
int weight;
float mass;
int a=9;
printf("Planet Name \n");
scanf("%s",&planet);
the compiler does not reads the if statement it just jumps to the else statement
if(planet=earth){
printf("Enter your weight \n");
scanf("%d",weight);
mass=weight/a;
printf("Your mass is %d",mass);}
else {
printf("Aww,snap!!!!!!We couldn't find the data");
}
return 0;}