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 |
wite a programme in c to linear search a data using flag and without using flags?
1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)
What should be keep precautions while using the recursion method?
different between overloading and overriding
What are the advantages of the functions?
What is define c?
will u please send me the placement papers to my mail???????????????????
what are bit fields in c?
list the no of files created when c source file is compiled
Explain data types & how many data types supported by c?
Explain is it better to bitshift a value than to multiply by 2?
What are terms in math?