Tuesday, June 11, 2013

If Else Statement Wont Work For Do While Loop - Java | Dream.In ...


Example
#{example}
"); ipb.editor_values.get('templates')['togglesource'] = new Template("
??? Cancel Source Edit
"); ipb.editor_values.get('templates')['toolbar'] = new Template(""); ipb.editor_values.get('templates')['button'] = new Template("
  • Icon
  • "); ipb.editor_values.get('templates')['menu_item'] = new Template("
  • #{title}
  • "); ipb.editor_values.get('templates')['togglesource'] = new Template("
    ??? Cancel Source Edit
    "); ipb.editor_values.get('templates')['emoticons_showall'] = new Template(""); ipb.editor_values.get('templates')['emoticon_wrapper'] = new Template("

    Emoticons

    "); // Add smilies into the mix ipb.editor_values.set( 'show_emoticon_link', false ); ipb.editor_values.set( 'bbcodes', $H({"snapback":{"id":"1","title":"Post Snap Back","desc":"This tag displays a little linked image which links back to a post - used when quoting posts from the board. Opens in same window by default.","tag":"snapback","useoption":"0","example":"[snapback]100[/snapback]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"topic":{"id":"5","title":"Topic Link","desc":"This tag provides an easy way to link to a topic","tag":"topic","useoption":"1","example":"[topic=1]Click me![/topic]","switch_option":"0","menu_option_text":"Enter the topic ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"post":{"id":"6","title":"Post Link","desc":"This tag provides an easy way to link to a post.","tag":"post","useoption":"1","example":"[post=1]Click me![/post]","switch_option":"0","menu_option_text":"Enter the Post ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"spoiler":{"id":"7","title":"Spoiler","desc":"Spoiler tag","tag":"spoiler","useoption":"0","example":"[spoiler]Some hidden text[/spoiler]","switch_option":"0","menu_option_text":"","menu_content_text":"Enter the text to be masked","single_tag":"0","optional_option":"0","image":""},"acronym":{"id":"8","title":"Acronym","desc":"Allows you to make an acronym that will display a description when moused over","tag":"acronym","useoption":"1","example":"[acronym='Laugh Out Loud']lol[/acronym]","switch_option":"0","menu_option_text":"Enter the description for this acronym (EG: Laugh Out Loud)","menu_content_text":"Enter the acronym (EG: lol)","single_tag":"0","optional_option":"0","image":""},"hr":{"id":"12","title":"Horizontal Rule","desc":"Adds a horizontal rule to separate text","tag":"hr","useoption":"0","example":"[hr]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"1","optional_option":"0","image":""},"php":{"id":"14","title":"PHP Code","desc":"Allows you to enter PHP code into a formatted/highlighted syntax box","tag":"php","useoption":"0","example":"[php]$variable = true;\n\nprint_r($variable);[/php]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"html":{"id":"15","title":"HTML Code","desc":"Allows you to enter formatted/syntax-highlighted HTML code","tag":"html","useoption":"0","example":"[html]\n \n[/html]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"sql":{"id":"16","title":"SQL Code","desc":"Allows you to enter formatted/syntax-highlighted SQL code","tag":"sql","useoption":"0","example":"[sql]SELECT p.*, t.* FROM posts p LEFT JOIN topics t ON t.tid=p.topic_id WHERE t.tid=7[/sql]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"xml":{"id":"17","title":"XML Code","desc":"Allows you to enter formatted/syntax-highlighted XML code","tag":"xml","useoption":"0","example":"[xml]\n \n Test\n \n[/xml]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"member":{"id":"31","title":"Member","desc":"Given a member name, a link is automatically generated to the member's profile","tag":"member","useoption":"1","example":"[member=skyhawk133] runs this site.","switch_option":"0","menu_option_text":"Input Username of Member","menu_content_text":"","single_tag":"1","optional_option":"0","image":"memberbbcode.png"},"extract":{"id":"33","title":"Extract Blog Entry","desc":"This will allow users to define an extract for an entry. Only this piece of the entry will be displayed on the main blog page and will show up in the RSS feed.","tag":"extract","useoption":"0","example":"[extract]This is an example![/extract]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"blog":{"id":"34","title":"Blog Link","desc":"This tag provides an easy way to link to a blog.","tag":"blog","useoption":"1","example":"[blog=100]Click me![/blog]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"entry":{"id":"35","title":"Blog Entry Link","desc":"This tag provides an easy way to link to a blog entry.","tag":"entry","useoption":"1","example":"[entry=100]Click me![/entry]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"twitter":{"id":"36","title":"Twitter","desc":"A tag to link to a user's twitter account","tag":"twitter","useoption":"0","example":"[twitter]userName[/twitter]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":"twitter.png"},"inline":{"id":"37","title":"Inline Code","desc":"Formats code inline instead of in a seperate code box. ","tag":"inline","useoption":"0","example":"[inline]style=\"font-size: 12px;\"[/inline]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"il":{"id":"38","title":"Abbreviated Inline (IL)","desc":"Abbreviated version of the [inline] tag. ","tag":"il","useoption":"0","example":"[il]Code Here[/il]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":"il2.png"},"code":{"id":"41","title":"Code","desc":"Allows you to enter general code","tag":"code","useoption":"1","example":"[code]$text = 'Some long code here';[/code]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"1","image":""}}) ); ipb.vars['emoticon_url'] = "http://cdn.dreamincode.net/forums/public/style_emoticons/default"; //Search Setup ipb.vars['search_type'] = 'forum'; ipb.vars['search_type_id'] = 32; ipb.vars['search_type_2'] = 'topic'; ipb.vars['search_type_id_2'] = 322728; //]]>

    29 Replies - 185 Views - Last Post: Yesterday, 09:58 PM Rate Topic: -----

    #1 streek405 ?Icon User is offline

    Reputation: 0

    • Posts: 36
    • Joined: 10-March 13

    Posted Yesterday, 07:05 PM

    
 //I am getting an error on line 29, stating "else without if"  //this program will ask you enter a number, it its too high or low, re-enter it  import java.util.Scanner;  class doWhile2{ 	 	public static void main(String[] args){ 		 		Scanner input = new Scanner(System.in); 		 		int i = (int)(Math.random() * 100); 		int number; 		 		// create do while  		do{ 			System.out.println("Enter an integer: "); 			number = input.nextInt(); 			 		} 		while(true); 			 			if (i == number){ 			System.out.println("The number you entered matches our number " + i); 			} 			break; 			 			else if (i > number){ 			System.out.println("The number you entered is too low, the difference is " + (i - number)" try again: "); 			} 			 			else { 			System.out.println("The number you entered is too high, the differnce is " (number - i)" try again: "); 			} 		 		 	} }    


    Is This A Good Question/Topic? 0

    Replies To: If else statement wont work for do while loop

    #2 schutzzz ?Icon User is online

    Reputation: 20

    • Posts: 60
    • Joined: 22-April 13

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:07 PM

    Remove the break or put it inside the if statement.

    This post has been edited by schutzzz: Yesterday, 07:08 PM


    #3 jon.kiparsky ?Icon User is offline

    Reputation: 5524

    • Posts: 8,925
    • Joined: 19-March 11

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:08 PM

    The else must follow the true branch directly. Here you have an intervening break instruction, which means the if statement has no else block. If the break is meant to be part of the true branch (if you want to break in the cases where i is equal to number) then it must go inside the curly braces.


    #4 streek405 ?Icon User is offline

    Reputation: 0

    • Posts: 36
    • Joined: 10-March 13

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:35 PM

    View Postjon.kiparsky, on 09 June 2013 - 07:08 PM, said:

    The else must follow the true branch directly. Here you have an intervening break instruction, which means the if statement has no else block. If the break is meant to be part of the true branch (if you want to break in the cases where i is equal to number) then it must go inside the curly braces.


    The reason why I put the break is so that if the user input a matching number, then the program should end. Am I thinking correctly? Also, I just removed the break, but now I am getting an error stating: "unexpected type" for the minus symbol in both my ELSE IF and ELSE statement. :(

    #5 jon.kiparsky ?Icon User is offline

    Reputation: 5524

    • Posts: 8,925
    • Joined: 19-March 11

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:37 PM

    View Postjon.kiparsky, on 09 June 2013 - 09:08 PM, said:

    If the break is meant to be part of the true branch (if you want to break in the cases where i is equal to number) then it must go inside the curly braces.



    #6 streek405 ?Icon User is offline

    Reputation: 0

    • Posts: 36
    • Joined: 10-March 13

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:39 PM

    View Postschutzzz, on 09 June 2013 - 07:07 PM, said:

    Remove the break or put it inside the if statement.


    But isnt the break so if my IF statement is true, then it will ignore the following statements? I've taken off the break and I added a + to my ELSE statement, but now I am getting the error: "unexpected type" for both my ELSE IF and ELSE statement, which is pointing to the subtraction sign...so now I have the following code:
    
  while(true); 			 			if (i == number){ 			System.out.println("The number you entered matches our number " + i); 			} 			 			 			else if (i > number){ 			System.out.println("The number you entered is too low, the difference is " + (i - number) " try again: "); 			} 			 			else { 			System.out.println("The number you entered is too high, the differnce is " + (number - i) " try again: "); 			}  


    #7 jon.kiparsky ?Icon User is offline

    Reputation: 5524

    • Posts: 8,925
    • Joined: 19-March 11

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:40 PM

    View Poststreek405, on 09 June 2013 - 09:35 PM, said:

    
 System.out.println("The number you entered is too low, the difference is " + (i - number)" try again: ");

    You're missing a plus sign.

    
 System.out.println("The number you entered is too low, the difference is " + (i - number) + " try again: ");


    #8 streek405 ?Icon User is offline

    Reputation: 0

    • Posts: 36
    • Joined: 10-March 13

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:45 PM

    View Postjon.kiparsky, on 09 June 2013 - 07:37 PM, said:

    View Postjon.kiparsky, on 09 June 2013 - 09:08 PM, said:

    If the break is meant to be part of the true branch (if you want to break in the cases where i is equal to number) then it must go inside the curly braces.


    Oh ok. I think I understand it now. But when I put the break inside the curly braces, I get an error stating "break outside switch or loop". So now I just omitted the break entirely.

    #9 jon.kiparsky ?Icon User is offline

    Reputation: 5524

    • Posts: 8,925
    • Joined: 19-March 11

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:46 PM

    View Poststreek405, on 09 June 2013 - 09:39 PM, said:

    But isnt the break so if my IF statement is true, then it will ignore the following statements?

    The syntax of the if statement is like this:

    if (CONDITION)
    STATEMENT BLOCK
    else STATEMENT BLOCK

    a STATEMENT BLOCK is eitehr a single statement:

    
 if (true) System.out.println("It's twue! It's twue!");

    which can be an empty statement:

    
 if (true) ;

    or some number of statements in curly braces:

    
 if (true) {   System.out.println("It's twue! It's twue!");   truthIsTrue = true;   int one = 1;   // etc. } 

    The STATEMENT BLOCK terminates after the closing curly brace (if you use braces) or after the semicolon terminating the single statement.

    Your break statement is not part of the if (and so, as written, it will always execute). Therefore, your else statements have no if to else themselves from, so the compiler complains.


    #10 streek405 ?Icon User is offline

    Reputation: 0

    • Posts: 36
    • Joined: 10-March 13

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:49 PM

    View Postjon.kiparsky, on 09 June 2013 - 07:40 PM, said:

    View Poststreek405, on 09 June 2013 - 09:35 PM, said:

    
 System.out.println("The number you entered is too low, the difference is " + (i - number)" try again: ");

    You're missing a plus sign.

    
 System.out.println("The number you entered is too low, the difference is " + (i - number) + " try again: ");

    Thank you, I too noticed that, but now I am getting the error "unexpected type" for both the ELSE IF and ELSE statement, pointing at the minus sign

    View Postjon.kiparsky, on 09 June 2013 - 07:46 PM, said:

    View Poststreek405, on 09 June 2013 - 09:39 PM, said:

    But isnt the break so if my IF statement is true, then it will ignore the following statements?

    The syntax of the if statement is like this:

    if (CONDITION)
    STATEMENT BLOCK
    else STATEMENT BLOCK

    a STATEMENT BLOCK is eitehr a single statement:

    
 if (true) System.out.println("It's twue! It's twue!");

    which can be an empty statement:

    
 if (true) ;

    or some number of statements in curly braces:

    
 if (true) {   System.out.println("It's twue! It's twue!");   truthIsTrue = true;   int one = 1;   // etc. } 

    The STATEMENT BLOCK terminates after the closing curly brace (if you use braces) or after the semicolon terminating the single statement.

    Your break statement is not part of the if (and so, as written, it will always execute). Therefore, your else statements have no if to else themselves from, so the compiler complains.


    Ok thank you, that actually makes sense!

    #11 Bountyhunter1234 ?Icon User is offline

    Reputation: 12

    • Posts: 64
    • Joined: 12-May 09

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:50 PM

    you start your while statement and immediately end it when you do this
    
while(true); 

    it should be

    
while(true){ 


    #12 streek405 ?Icon User is offline

    Reputation: 0

    • Posts: 36
    • Joined: 10-March 13

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:52 PM

    View PostBountyhunter1234, on 09 June 2013 - 07:50 PM, said:

    you start your while statement and immediately end it when you do this
    
while(true); 

    it should be

    
while(true){ 

    I originally made it like that, but then I got the error " ; expected", point that the curly brace

    #13 jon.kiparsky ?Icon User is offline

    Reputation: 5524

    • Posts: 8,925
    • Joined: 19-March 11

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:54 PM

    If you fix that missing plus sign, that will go away.

    Also, there's no reason why your break should be giving you an error if you put it inside the curly braces.

    See the following sample code. Try compiling it in a throwaway file:

    
public class Foo {    public static void main(String[] args)    {       int i = 0;       int number = 10;       System.out.println("The number you entered is too low, the difference is"             + (i - number) +" try again: ");        while (true) {          if (true)  { System.out.println ("true"); break;}       }    } } 

    This post has been edited by jon.kiparsky: Yesterday, 07:59 PM


    #14 Bountyhunter1234 ?Icon User is offline

    Reputation: 12

    • Posts: 64
    • Joined: 12-May 09

    Re: If else statement wont work for do while loop

    Posted Yesterday, 07:57 PM

    my fault i didn't realize it was a do-while, so forget my post i was looking at it as a while statement.


    #15 streek405 ?Icon User is offline

    Reputation: 0

    • Posts: 36
    • Joined: 10-March 13

    Re: If else statement wont work for do while loop

    Posted Yesterday, 08:03 PM

    View Postjon.kiparsky, on 09 June 2013 - 07:54 PM, said:

    If you fix that missing plus sign, that will go away.

    Also, there's no reason why your break should be giving you an error if you put it inside the curly braces.

    See the following sample code. Try compiling it in a throwaway file:

    
public class Foo {    public static void main(String[] args)    {       int i = 0;       int number = 10;       System.out.println("The number you entered is too low, the difference is"             + (i - number) +" try again: ");        while (true) {          if (true)  { System.out.println ("true"); break;}       }    } } 

    View PostBountyhunter1234, on 09 June 2013 - 09:50 PM, said:

    you start your while statement and immediately end it when you do this
    
while(true); 

    it should be

    
while(true){ 

    I've tried that but I am still getting the same error, for the break. This the the code

    
 while(true); 			 			if (true){ 			System.out.println("The number you entered matches our number " + i); 			break; 			} 			 			 			else if (i > number){ 			System.out.println("The number you entered is too low, the difference is " + (i - number) " try again: "); 			} 			 			else { 			System.out.println("The number you entered is too high, the differnce is " + (number - i) " try again: "); 			} 		  

    Good catch! That is in fact the problem.

    LOL That was my very first attempt that this code, but it stated that I need an ";" in place of the curly brace for the WHILE. Also, in my book, for the do while example, there is an ";" not a curly brace for the while part, although that does not make any sense to me...

    View PostBountyhunter1234, on 09 June 2013 - 07:57 PM, said:

    my fault i didn't realize it was a do-while, so forget my post i was looking at it as a while statement.


    It's all good, man.


    Source: http://www.dreamincode.net/forums/topic/322728-if-else-statement-wont-work-for-do-while-loop/

    After Christmas Sales 2012 Charles Durning Webster Ny Mcdonalds Restaurants Open on Christmas Day jessica simpson santa tracker

    Sunday, June 9, 2013

    3 Americans Killed in Afghan Insider Attack (Voice Of America)

    Share With Friends: Share on FacebookTweet ThisPost to Google-BuzzSend on GmailPost to Linked-InSubscribe to This Feed | Rss To Twitter | Politics - Top Stories News, News Feeds and News via Feedzilla.

    Source: http://news.feedzilla.com/en_us/stories/politics/top-stories/311403198?client_source=feed&format=rss

    Tony Farmer West Nile virus symptoms snooki Prince Harry Vegas pictures Avril Lavigne Microsoft Tropical Storm Isaac

    South Africa: Mandela has lung infection

    JOHANNESBURG (AP) ? South Africans on Saturday said their thoughts were with former President Nelson Mandela, who was in "serious but stable" condition after being taken to a hospital to be treated for a recurring lung infection.

    Mandela, who is 94 years old, was treated in a hospital several times in recent months, with the last discharge coming on April 6 after doctors diagnosed him with pneumonia and drained fluid from his lung area. He has been particularly vulnerable to respiratory problems since contracting tuberculosis during his 27-year imprisonment under apartheid.

    A small girl and her father stood outside Mandela's Johannesburg home with a stone on which was written a get-well message for Mandela, who helped end white racist rule and became the country's first black president in all-race elections in 1994. A young boy brought a bouquet of flowers that he handed over to guards at the house.

    Elsewhere in the city, some worshippers prayed for Mandela during an outdoor gathering.

    "If the time comes, we wish for him a good way to go," said Noel Ngwenya, a security officer who was in the congregation.

    "During the past few days, former President Nelson Mandela has had a recurrence of lung infection," said a statement from the office of President Jacob Zuma. "This morning at about 1:30 a.m., his condition deteriorated and he was transferred to a Pretoria hospital."

    It said Mandela was receiving expert medical care and "doctors are doing everything possible to make him better and comfortable."

    Zuma wished Mandela a quick recovery on behalf of the government and the nation and requested that the media and the public respect the privacy of the former leader and his family, the statement said.

    Mandela's wife, humanitarian activist Graca Machel, canceled an appearance at an international forum on hunger and nutrition in London on Saturday, citing "personal reasons," said Colleen Harris, a spokeswoman for the meeting.

    Presidential spokesman Mac Maharaj said Machel had canceled her attendance at the London meeting on Thursday, and had accompanied Mandela to the hospital on Saturday morning, the South African Press Association reported.

    "We need to hold our thoughts and keep him in our minds," Maharaj said. "He is a fighter, he has recovered many times from very serious conditions and he will be with us. Let's pray for him and help him to get better."

    The African National Congress, the ruling party that has dominated politics in South Africa since the end of apartheid, said it hoped Mandela, known affectionately by his clan name Madiba, would get better soon.

    "We will keep President Mandela and his family in our thoughts and prayers at this time and call upon South Africans and the peoples of the globe to do the same for our beloved statesman and icon, Madiba," the party said in a statement.

    On April 29, state television broadcast footage of a visit by Zuma and other ANC leaders to Mandela at his Johannesburg home. Zuma said at the time that Mandela was in good shape, but the footage - the first public images of Mandela in nearly a year - showed him silent and unresponsive, even when Zuma tried to hold his hand.

    "Nelson Mandela is a father to South Africa and South Africans; every time he is admitted to hospital we feel saddened along with the rest of our country," the Democratic Alliance, the main political opposition party, said in a statement.

    South Africans expressed hope that Mandela would recover from his latest setback.

    "He is going to survive," said Willie Mokoena, a gardener in Johannesburg. "He's a strong man."

    Another city resident, Martha Mawela, said she thought the former president would recover because: "Everybody loves Mandela."

    Mandela was robust during his decades as a public figure, endowed with charisma, a powerful memory and an extraordinary talent for articulating the aspirations of his people and winning over many of those who opposed him.

    In recent years, however, he has become more frail and last made a public appearance at the 2010 World Cup soccer tournament, where he didn't deliver an address and was bundled against the cold.

    In another recent hospitalization, Mandela was treated for a lung infection and had a procedure to remove gallstones in December. In March, he spent a night in a hospital for what authorities said was a scheduled medical test.

    Source: http://news.yahoo.com/south-africa-mandela-lung-infection-172928815.html

    washington post Family Guy Boston Marathon revolution huffington post What is ricin Boston Marathon Explosion Boston Marathon bombing

    Leaked Windows Phone Screenshots Finally Show a Notification Center

    Leaked Windows Phone Screenshots Finally Show a Notification Center

    Windows Phone 8 is pretty, and there's a lot of things to like about it. But for every one of those there's also a glaring absence. Hopefully one of those is soon to disappear, leaked screenshots of an internal build of the OS shows that there's finally a notification center, presumably coming soon.

    The screenshots were shared by a Redditor who bought a 920 off Ebay and found that it was running a peculiar OS: an internal beta. In addition to the notification center, there seem to be some improvements to multitasking as well, including the ability to close applications in that view.

    As with any leak, there's always the possibility it's just a big fake, but there's nothing about this set of screenshots to make it wildly suspicious. On top of that, we know Microsoft's pushing out a Windows 8.1 update soon, and when an update comes to Windows Phone 8, you'd hope it would include something so basic as a notification center. Here's to hoping. [Reddit via The Verge]

    Update: WPCentral is citing unnamed sources saying that this notification center thing was legit, but has since been nixed from the upcoming update. Meanwhile The Verge is citing different unnamed sources who say this is a current, preliminary version of WP8's "Windows Blue" update.

    Source: http://gizmodo.com/leaked-windows-phone-screenshots-finally-show-a-notific-512078125

    Johnny Depp Dead college football rankings Steel Magnolias Niels Bohr the Rumble 2012 Columbus Day 2012 carlina white

    Saturday, June 8, 2013

    If looks could kill: Cersei's best 'Thrones' glares

    TV

    14 hours ago

    If looks could kill on "Game of Thrones," the death stare of Cersei Lannister (Lena Headey) would have claimed more lives than the Red Wedding.

    With Sunday's finale looming, we've tallied the victims of the queen regent's most withering sneers from season three. She may not always triumph in a war of words, nor can her evil eye surpass her son/nephew Joffrey's corporeal cruelty. But those cut down by her glaring daggers almost always tremble with fear.

    1. Cersei instantly shut down future daughter-in-law Margaery Tyrell's sister act in "Second Sons": "If you ever call me 'sister' again, I'll have you strangled in your sleep." Oh, snap!

    Image: Cersei and Margaery

    HBO

    2. When Joffrey sides with his fianc?e -- for instance, their royal wave in "And Now His Watch Is Ended" -- the queen is not amused. Seriously. Look at that magnificent raised eyebrow.

    Image: Cersei

    HBO

    3. Joffrey may be blind to Margaery's scheming -- including feeding their poor subjects -- but his mother's eyes are wide open. "I'm sure she knows what she's doing," praised the boy king, to which Cersei equivocated, "I'm sure she does."

    Image: Cersei

    HBO

    4. Cersei's smug mug at Tyrion and Sansa's betrothal turned to horror when Tywin told her she was marrying Loras Tyrell. "You should be thanking the gods for this -- this is more than you deserve," daddy dearest snapped. But something tells us his daughter will devise another shortcut to widowhood before too many sleeps. (That eyebrow, again!)

    Image: Cersei

    HBO

    5. Tiresome chitchat with her betrothed is out of the question: "Nobody cares what your father once told you," she wearily interrupted the hapless knight.

    Loras and Cersei

    HBO

    6. After barging into her younger brother's quarters in the third-season premiere, Cersei warned, "You're a clever man, but not half as clever as you think you are." (This round went to Tyrion, when he retorted, "Still makes me more clever than you." Ouch!)

    Image: Cersei

    HBO

    How will Cersei react in the season finale when she hears news of the Red Wedding? Mayhaps it will look something like this?

    Image: Cersei

    HBO

    The season finale of "Game of Thrones" airs Sunday at 9 p.m. on HBO.

    Which Cersei sneer is your favorite? Tell us about it in comments.

    Source: http://www.today.com/entertainment/if-looks-could-kill-cerseis-best-game-thrones-glares-6C10223430

    sarah palin cbi the shins atomic clock john mccain game changer corned beef recipe