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 |
extern static int i func() { i =10; i++; printf("%d \n",i); } main() { i =20; printf("%d \n",i); func(); printf("%d \n",i); }
write a program to read a number and print in words that is in sentence for example 21,219 then output is "twenty one thousand and two hundred nineteen" by using only control flow statements (only loops and switch case )?
who invented c
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.
How do you print an address?
How to print India by nested loop? I IN IND INDI INDIA
What is define directive?
Program to find the absolute value of given integer using Conditional Operators
How can I find the modification date and time of a file?
how to use virual function in real time example
How can I trap or ignore keyboard interrupts like control-c?
pascal triangle program