Advertisement
Nickpips

Untitled

Dec 5th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4. public static void main( String[] args )
  5. {
  6. Scanner scan = new Scanner(System.in);
  7. int e = scan.nextInt();
  8. for( int i = 0; i < e; i++ )
  9. {
  10. int a = scan.nextInt();
  11. int b = scan.nextInt();
  12. int c = scan.nextInt();
  13. System.out.println( (c==(a+b) ? "Correct!" : "Wrut Row!") );
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement