Page 69 - Trackpad_ipro 4.1_Class8
P. 69

int a, b, c;

                                a = 10;
                                b = 20;                                          Write output here:

                                c = a;
                                a = b;

                                b = c;
                                System.out.println("Value of a is:" + a);

                                System.out.println("Value of b is:" + b);
                            }

                        }
                     4.  public class A1{

                            public static void main(String[] args){              Write output here:
                            String first_name = "Kittu";

                            String last_name = "Sharma";
                            String name = first_name + " " +  last_name;

                            System.out.println(name);
                            }

                        }
                     5.  public class B{

                            public static void main(String[] args){              Write output here:

                                int age = 17;
                                age += 1;
                                age++;

                                ++age;

                                System.out.println(age);
                            }
                        }

                     6.  public class C6{

                            public static void main(String[] args){              Write output here:
                            int a = 5;
                            int b = 5;

                            System.out.println(a > b);

                            System.out.println(a == b);
                        }}




                                                                                              Program Coding     67
   64   65   66   67   68   69   70   71   72   73   74