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 |
Write the Program to reverse a string using pointers.
What are the advantages of using macro in c language?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
What is #define?
What is static identifier?
What is an array? What the different types of arrays in c?
What are the scope of static variables?
What is the purpose of 'register' keyword in c language?
A woman had somany gloves and hats 22 red,34 blue, 45 white...there was power cut and she took a glove and how many gloves shud she take so that she gets a pair of glove fr each color??
what is difference between procedural language and functional language ?
What is the full form of getch?
const char * char * const What is the differnce between the above tow?.