ICT
Translate
Saturday, 16 December 2017
We count 35 heads and 94 legs among the chickens and rabbits in a farm. How many rabbits and how many chickens do we have?
public class ChickenAndRabbits
{
public static void main(String arga[])
{
int a=35;
int b=94;
int c=a*2;
int d=(b-c)/2;
System.out.println("RABBITS :"+d);
int e=a-d;
System.out.println("CHICKENS :+e);
}
}
OUTPUT
RABBITS 12
CHICKENS 23
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Featured post
check box
<!DOCTYPE html> <html> <head> <title>Check Box</title> </head> <body> <input ty...
List Style css
<!DOCTYPE html> <html> <head> <title>List Style</title> <style> .ul1 { list-...
check box
<!DOCTYPE html> <html> <head> <title>Check Box</title> </head> <body> <input ty...
No comments:
Post a Comment