Computer Science, asked by ashok91, 1 year ago

a program to enter a number and check it if it is greater than 15 is then print hello and if it is not greater than 15
then print bye

Answers

Answered by Anonymous
22
ANSWER
..................



                       #include


<stdio.h>                 

               int main()

{

char choice = 'y'


; while(choice == 'y')

{


int a;



                                                      printf


("Enter a number to check odd or even\n");


scanf("%d",&a);


if(a%2==0)



{



printf 


("Your number is even\n");

}


else




{

printf                               


("Your number is odd\n");

}


printf


("Want to check more y for yes n for no\n");







scanf





(" %c",&choice);


}

return 0


; }
Answered by ArjunCRPSM
0
import java.io.*;

public class max

{
int I;
BufferedReader br= new BufferedReader (new Input StreamReader (System. in));

void accept() throws IOException
{

int I= Integer.parseInt (br.readLibe());
System. out. println("Enter number");

}

void calculate ()
{

if(i>=15)
system.out.println("Hello");

else

System.out.println("Bye");

}

}

Hope this helps....

#CRPSM
Similar questions