Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

FLOW001:Addition of two numbers

$
0
0

// can anyone please tel me whats wrong in this answer

import java.util.Scanner; public class useradd{ public static void main (String []args){

int result;
Scanner scan =new Scanner (System.in);
int a= scan.nextInt();
int b= scan.nextInt();
int T=scan.nextInt();
if (T<1000){
if (a<10000){

if (b<10000){


    result  = a+b;

    System.out.println (result);
    }
    }

} System.out.println ("user input addition is conpleted"); }

}


Viewing all articles
Browse latest Browse all 39796

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>