write a program to display the numbers having digit 9 in the
given range from 1 to 100
Answer / neha
public class DisplayNumbers {
public static void main(String args[])
{
int num=0,Nine=9;
for(int i=1;i<100;i++)
{
int rem=i/10;
num=i%10;
if(num==Nine || rem==Nine)
{
System.out.println("Number is :: "+ i);
}
}
}
}
| Is This Answer Correct ? | 12 Yes | 0 No |
Juxtapose the use of override with new. What is shadowing?
What is calloc malloc realloc in c?
What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }
What is the meaning of ?
Explain how do you use a pointer to a function?
What is huge pointer in c?
How does selection sort work in c?
Write a progarm to find the length of string using switch case?
What does sizeof return c?
how to find that no is int or float?
Differentiate fundamental data types and derived data types in C.
What is a keyword?