Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

CSS_JS_examples

<!DOCTYPE html>
<html>
<head>
<style>
h1{color: red;}
#para_bold {
   font-weight: bold;
    
}
.para_smallfont {font-style: italic;;}
    
</style>

<title>Web Page Design</title>

<script>

function sayHello() {
   document.write("Hello, Coding Ground!");
}
sayHello();

</script>
</head>
<body>
<h1> Section 1</h1>

<p id = "para_bold"> This paragraph will be in bold</p>
<p class = "para_smallfont"> This is a smaller font paragraph</p>
<p class = "para_smallfont" > this is another smaller font paragraph</p>

<h1> Section 2</h1>
</body>
</html>

Compile and Execute Java8 Online

public class HelloWorld{

     public static void main(String []args){
        System.out.println("Hello World");
     }
}

test.....................................

program instruens_fabulam
  implicit none  

  ! the variables
  integer stat
  character(79) :: line

  ! this opens the input file
  open (25, file='text.txt', status='old', iostat=stat)


  ! this opens the output file
  open (50, file='outtext.txt', status='unknown', iostat=stat)


  ! runs file
  do while (.true.)
    read (25, '(A)', end=79) line ! reads input line
    write(*, '(80A)') line        ! writes line to the screen
	
    write(50, '(A)') trim(line)   ! writes line to output file, removes trailing characters
    
    
  enddo
  
  ! this closes the files
  79 continue
  close (25)
  close (50)
    
end program instruens_fabulam

genration of maximum of given numbers

asm

section	.text
	global _start       ;must be declared for using gcc
_start:                     ;tell linker entry point
	mov	edx, len    ;message length
	mov	ecx, msg    ;message to write
	mov	ebx, 1	    ;file descriptor (stdout)
	mov	eax, 4	    ;system call number (sys_write)
	int	0x80        ;call kernel
	mov	eax, 1	    ;system call number (sys_exit)
	int	0x80        ;call kernel

section	.data

msg	db	'Hello, world!',0xa	;our dear string
len	equ	$ - msg			;length of our dear string

hkjfhkjdshfkjdshfkjdshkjfhsfks

# Hello World Program in Bash Shell
#!/bin/bash
echo "bonjour $1! Tu es magnifique aujourd'hui."

Shellexplorationbonjourblahblah

# Hello World Program in Bash Shell
#!/bin/bash
echo "bonjour $1! Tu es magnifique aujourd'hui."

Compile and Execute C Online

c

#include <stdio.h>

int main()
{
    int x,y,z;
    printf("enter an integer ");
    scanf("%d", &x);
    printf("enter an integer ");
    scanf("%d", &y);
    z=x+y;
    printf("The sum is %d", z);
    
    return 0;
}

Sintaxe de cjhamada de funções --------

larguraDaLinha = 40
str = '--> text <--'
puts str.ljust(larguraDaLinha)
puts str.center(larguraDaLinha)
puts str.rjust(larguraDaLinha)
puts str.ljust(larguraDaLinha/2) + str.rjust(larguraDaLinha/2)
    
#https://pt.stackoverflow.com/q/236001/101

Erro índice matriz ------------

c99

#include <stdio.h>
#define DIM 2

void retorna_matriz2D(int mat[][DIM]) {
    for (int x = 0; x < DIM; x++) {
        for (int y = 0; y < DIM; y++) {
            mat[x][y] = 2;
            printf("%d\n", mat[x][y]);
        }
    }
}

int main(){
    int mat2D[DIM][DIM];
    retorna_matriz2D(mat2D);
    for (int x = 0; x < DIM; x++) {
        for (int y = 0; y < DIM; y++) {
            printf("%d\n", mat2D[x][y]);
        }
    }
}

//https://pt.stackoverflow.com/q/235989/101

C# ciklai su paaiskinimu kodel neveikia kodas.

using System;

class Program
{
    static void Main () {
        int bendras = 55,
            eilutes = 10;
        char character = '*';
        
        for (int i = 1; i <= bendras; i++) {
            for (int j = 1; j <= eilutes; j++) {
                Console.Write(character);
                bendras--;
            }
            Console.WriteLine("{0} {1}", i, bendras);
        }
        
        for (int k = 1; k <= bendras; k++) {
            Console.Write(character);
        }
    }
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.