payilagam共168篇
Missing number,Reverse Number,subarray with a given sum-拾光赋

Missing number,Reverse Number,subarray with a given sum

Missing number,Reverse Number,subarray with a given sum,Missing number: package afterfeb13; public class missingnum { public static void main(String[] args) { int[] arr = { 10, 20,...
kity的头像-拾光赋kity27天前
03415
Python Day-9 Predefined modules,While loop,Task-拾光赋

Python Day-9 Predefined modules,While loop,Task

Python Day-9 Predefined modules,While loop,Task,Predefined modules sys module:(sys.argv) In this module sys.argv is used to show output as lists. For example: Input: import sys pri...
kity的头像-拾光赋kity4个月前
05215
Python Day - 8 Modules-Meaning and Types,Tasks-拾光赋

Python Day – 8 Modules-Meaning and Types,Tasks

Python Day - 8 Modules-Meaning and Types,Tasks,Modules: Every python file is a module.Files which we save with the extension(.py) all are modules. Modules can be reused using impor...
kity的头像-拾光赋kity4个月前
05015
Java if-else Statement-拾光赋

Java if-else Statement

Java if-else Statement,You already know that Java supports the usual logical conditions from mathematics:(TBD) Less than: a < b Less than or equal to: a <= b Greater than: a ...
kity的头像-拾光赋kity1个月前
04415
Objects-拾光赋

Objects

Objects,1. Object An object in Java is a basic unit of Object-Oriented Programming and represents real-life entities. Objects are the instances of a class that are created to use t...
kity的头像-拾光赋kity3个月前
02815
Multidimensional array--matrix-拾光赋

Multidimensional array–matrix

Multidimensional array--matrix,Gross matrix:X package afterfeb13; public class multidimarray { public static void main(String[] args) { int[][] mark = { { 10, 20, 80 }, { 40, 50, 6...
kity的头像-拾光赋kity26天前
04615
Write a program to EB bill calculator-拾光赋

Write a program to EB bill calculator

Write a program to EB bill calculator,Electricity Board bill calculator: An Electricity Bill (EB) Calculator is a tool used to estimate the cost of electricity consumption based on...
kity的头像-拾光赋kity4个月前
05515
Bubble Sort,Selection Sort-拾光赋

Bubble Sort,Selection Sort

Bubble Sort,Selection Sort,Bubble Sort Algorithm Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong orde...
kity的头像-拾光赋kity31天前
02515
Simple program using Return keyword...-拾光赋

Simple program using Return keyword…

Simple program using Return keyword..., output 原文链接:Simple program using Return keyword...
kity的头像-拾光赋kity3个月前
05815
Python Day-21 String functions logic using loops-拾光赋

Python Day-21 String functions logic using loops

Python Day-21 String functions logic using loops,1) replace(): Returns a string where a specified value is replaced with a specified value. txt = 'I like bananas' already = 'banana...
kity的头像-拾光赋kity3个月前
03915
Python Day - 11 Looping-Examples and Tasks-拾光赋

Python Day – 11 Looping-Examples and Tasks

Python Day - 11 Looping-Examples and Tasks,Task:1 #Print Numbers #Write a program to print numbers from 1 to 10 using a while loop. def print_numbers(num): no=1 while no<=num: p...
kity的头像-拾光赋kity4个月前
04815
Inheritance-拾光赋

Inheritance

Inheritance,Inheritance in Java Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object. It is an important part of OOPs...
kity的头像-拾光赋kity1个月前
03815