import java.util.Scanner; class Demo { public static void main( String args[]) { Scanner sc= new Scanner(System.in); System.out.println( "Print Solid Pattern" ); System.out.print( "Enter the value of n: " ); int n = sc.nextInt(); System.out.print( "Enter the value of n: " ); int m = sc.nextInt(); for ( int i= 1 ; i<=n; i++) { for ( int j= 1 ; j<=m; j++){ System.out.print( "*" ); } System.out.println(); } } } OUTPUT: Print Solid Pattern Enter the value of n: 4 Enter the value of n: 7 ******* ******* ******* **...
Automations and robotics refer to the use of technology to automate and perform tasks that were previously done by humans. Automation involves the use of software, machines, and other systems to perform tasks without human intervention. Robotics, on the other hand, involves the design and development of machines that can perform tasks autonomously or with limited human intervention. Automations and robotics are widely used in industries such as manufacturing, healthcare, transportation, and agriculture. In manufacturing, robots are used to perform repetitive and dangerous tasks, such as welding and painting. In healthcare, robots are used to perform surgeries and assist patients with mobility issues. In transportation, automated systems are used to control traffic flow and ensure the safety of drivers and passengers. In agriculture, robots are used to plant and harvest crops, reducing the need for manual labor. Advancements in technology have led to the development of more sophisticate...
There are many high-level languages, such as C, Pascal, BASIC, and Java. These are all excellent languages suited for most programming tasks. Even so, there are several reasons why many computer professionals feel that C is at the top of the list: • C is a powerful and flexible language and places no constraints while writing codes. It is used for projects as diverse as operating systems, word processors, graphics, spreadsheets, and even compilers for other languages. • A wide variety of C compilers and helpful accessories are readily available. • C is a portable language. Portable means that a C program written for one computer system (an IBM PC, for example) can be compiled and run on another system (a DEC VAX system, perhaps) with little or no modification. Portability has been enhanced after its standardization by American National Standards Institute (ANSI) which sets the rules for C compilers. • C is a language of few words, containing only a handful of terms, called keywords, wh...
Comments
Post a Comment