0% found this document useful (0 votes)
14 views

Abhi Java 1.1

The document summarizes a Java programming experiment conducted by a student to print the first 10 multiples of a given integer using a for loop. The student took an integer as input, initialized a result variable, and used a for loop to calculate each multiple as N x i and print it. The student learned about Java input/output streams, how loops execute and update values, and the different types of loops. The experiment was evaluated based on student performance, a viva voce, and submission of a work sheet.

Uploaded by

Abhinov Roy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Abhi Java 1.1

The document summarizes a Java programming experiment conducted by a student to print the first 10 multiples of a given integer using a for loop. The student took an integer as input, initialized a result variable, and used a for loop to calculate each multiple as N x i and print it. The student learned about Java input/output streams, how loops execute and update values, and the different types of loops. The experiment was evaluated based on student performance, a viva voce, and submission of a work sheet.

Uploaded by

Abhinov Roy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Experiment No.1.

Student Name: Abhinov Kumar Roy UID:21BCS9952


Branch: CSE Section/Group 802-B
Semester: 3rd Date of Performance:26-08-2022
Subject Name : OOPs using Java Subject Code: 21CSH-218

Aim of the practical: In this challenge, we're going to use loops to help us do some simple
math.

Objective: Given an integer, , print its first multiples. Each multiple (where ) should be
printed on a new line in the form: N x i = result.

Program Code:
import java.io.*;
import java.math.*;
import java.util.Scanner;

public class Solution {


public static void main(String[] args) throws IOException {
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int result=0;
for(int i=1;i<=10;i++){
result=N*i;
System.out.println(N+" x "+i+" = "+result);
}

}
}
Output:

Learning outcomes (What I have learnt):

1. Basic concepts of Java regarding input and output stream.

2. Learnt about the execution of loop how it runs and update the given value.

3.Learnt about the different types of loops and what’s the main difference between
them.
Evaluation Grid :

Sr. No. Parameters Marks Obtained Maximum Marks


1. Student Performance 12
(Conduct of experiment)
objectives/Outcomes.
2. Viva Voce 10
3. Submission of Work Sheet 8
(Record)
Total 30

You might also like