java new project
package com.company;
import java.util.Scanner;
public class chamiya {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("enter the mark ");
int a = scan.nextInt();
System.out.println("enter the mark ");
int b =scan.nextInt();
System.out.println("enter the mark ");
int c = scan.nextInt();
int d = a + b+c;
System.out.print("total is:");
System.out.println(d);
}
}
Comments
Post a Comment
Ask me anything here...