Hello World!

We are Cyber Assassins Cyber Assassins

View Work Contact Us

Our Blog

A basic html with css and javascript for scratch web devs


 

Hey there assassins long time after we created a post about html a basic relevant post was frii classes

now we will introduce a professional skeleton html css and js based code that will help us to understand 

the html language better\


the html code


<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Professional Website</title>

    <link rel="stylesheet" href="style.css">

</head>

<body>

    <header>

        <h1>Welcome to our Professional Website</h1>

    </header>

    <nav>

        <ul>

            <li><a href="#home">Home</a></li>

            <li><a href="#about">About</a></li>

            <li><a href="#services">Services</a></li>

            <li><a href="#contact">Contact</a></li>

        </ul>

    </nav>

    <section id="home" class="section">

        <h2>Welcome</h2>

        <p>This is a professional website built to showcase our services.</p>

    </section>

    <section id="about" class="section">

        <h2>About Us</h2>

        <p>We are a team of professionals dedicated to providing high-quality services to our clients.</p>

    </section>

    <section id="services" class="section">

        <h2>Our Services</h2>

        <ul>

            <li>Web Design</li>

            <li>Graphic Design</li>

            <li>Digital Marketing</li>

            <li>Content Writing</li>

        </ul>

    </section>

    <section id="contact" class="section">

        <h2>Contact Us</h2>

        <p>Feel free to reach out to us for any inquiries or collaborations.</p>

        <form>

            <label for="name">Name:</label><br>

            <input type="text" id="name" name="name"><br>

            <label for="email">Email:</label><br>

            <input type="email" id="email" name="email"><br>

            <label for="message">Message:</label><br>

            <textarea id="message" name="message" rows="4"></textarea><br>

            <input type="submit" value="Submit">

        </form>

    </section>

    <footer>

        <p>&copy; 2024 Professional Website. All rights reserved.</p>

    </footer>

    <script src="script.js"></script>

</body>

</html>



the additional css code/


/* Reset default browser styles */
body, h1, h2, h3, p, ul, li, form, input, textarea {
    margin: 0;
    padding: 0;
}

/* Basic styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

nav {
    background: #444;
    padding: 10px;
}

nav ul {
    list-style: none;
    text-align: center;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.section {
    padding: 20px;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Additional styling */
h2 {
    color: #333;
}

section {
    background: #f4f4f4;
    margin: 20px;
    border-radius: 5px;
}

ul {
    list-style: disc;
    margin-left: 20px;
}

form {
    margin-top: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"] {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

input[type="submit"]:hover {
    background: #444;
}


the js code/

document.addEventListener("DOMContentLoaded", function() {
    // Smooth scrolling for navigation links
    const navLinks = document.querySelectorAll('nav ul li a');

    navLinks.forEach(link => {
        link.addEventListener('click', smoothScroll);
    });

    function smoothScroll(e) {
        e.preventDefault();

        const targetId = e.target.getAttribute('href').substring(1);
        const targetSection = document.getElementById(targetId);
        
        window.scrollTo({
            top: targetSection.offsetTop,
            behavior: 'smooth'
        });
    }

    // Form submission handling
    const form = document.querySelector('form');

    form.addEventListener('submit', function(e) {
        e.preventDefault();

        const formData = new FormData(this);
        const formDataObject = {};
        
        formData.forEach((value, key) => {
            formDataObject[key] = value;
        });

        // Here you can do whatever you want with the form data
        // For example, send it to a server or display it
        // Here, we're just displaying it in an alert
        alert("Form submitted!\n\nName: " + formDataObject.name + "\nEmail: " + formDataObject.email + "\nMessage: " + formDataObject.message);
        
        // Clear form fields
        this.reset();
    });
});


and these credit goes to chatgpt lol :))


 


hey there coders this is the simple python code for generating random numbers. here is the code



import random

print(random.randint(0,9))


import random

print(random.randint(1,10))


import random

print(random.randint(11,20))


import random

print(random.randint(21,30))


import random

print(random.randint(31,40))


import random

print(random.randint(41,50))


import random

print(random.randint(51,60))


import random

print(random.randint(61,70))


import random

print(random.randint(71,80))


import random

print(random.randint(81,90))


import random

print(random.randint(91,100))


fun you can change this to name


 

Hey there coders it is a easy code python beginners here is the code


num1 = 1

num2 = 6

sum = num1 + num2

print('The sum is {0}+{1}={2}'.format (num1,+ num2, sum))


then a fun code for beginners an infinity sum code it is really fun and satisfying. here is the code


n = 0

while(True):
    print(n)
    n = n + 1

so this is the code its for fun.

note: it can lag for some compilers.




Hey there coders we are deciding to start new posts of python codings.
its me agent 47 . it is a simple printing functional code it is the main basic of 
coding. here is the code



print('Hello, world!')

Tips for beginners

 



hey there its me agent 47 this is the tips for beginner for coding.





 



hey there coders its me Agent 47 here is an new type of code it is quit simple.



#include<stdio.h>

int main()

 {

  double first, second, temp;

  printf("Enter first number: ");

  scanf("%lf", &first);

  printf("Enter second number: ");

  scanf("%lf", &second);

  temp = first;

  first = second;

  second = temp;

  printf("\nAfter swapping, first number = %.2lf\n", first);

  printf("After swapping, second number = %.2lf", second);

  return 0;

}


Simple calculator 2.0



Hey there recently i added some fixes to this code. But now for this we have  a new and easy code for this simple calculator. here is the code.


#include <stdio.h>

int main()

{

  char op;

  double first, second;

  printf("Enter an operator (+, -, *, /): ");

  scanf("%c", &op);

  printf("Enter two operands: ");

  scanf("%lf %lf", &first, &second);

  switch (op) 

  {

    case '+':

      printf("%.1lf + %.1lf = %.1lf", first, second, first + second);

      break;

    case '-':

      printf("%.1lf - %.1lf = %.1lf", first, second, first - second);

      break;

    case '*':

      printf("%.1lf * %.1lf = %.1lf", first, second, first * second);

      break;

    case '/':

      printf("%.1lf / %.1lf = %.1lf", first, second, first / second);

      break;

    default:

      printf("Error! operator is not correct");

  }


  return 0;

}


code for prime num detection



 Hey there its me AGENT 47 from cyber assassins many time has been passed but we didnt respond here is a simple code that can detect prime numbers


#include <stdio.h>

int main() 

{


  int n, i, flag = 0;

  printf("Enter a positive integer: ");

  scanf("%d", &n);

  if (n == 0 || n == 1)

    flag = 1;


  for (i = 2; i <= n / 2; ++i) {

    if (n % i == 0) {

      flag = 1;

      break;

    }

  }

  if (flag == 0)

    printf("%d is a prime number.", n);

  else

    printf("%d is not a prime number.", n);


  return 0;

}


i hope that you all will understand this or you can comment your doubt about this. Thanks for supporting us.

 



Hey there assassins, welcome to cyber assassins a couple days ago our admin Lyc posted the same code

but i have fixed some bugs. so here is the code:


#include <stdio.h>


int main()

{

    char operation;

    double a, b;

    printf("Enter the first number\n");

    scanf("%lf", &a);

    printf("Enter the operation you want to do. It must be * / + - x ÷\n");

    scanf(" %c", &operation);

    printf("Enter the second number\n");

    scanf("%lf", &b);


switch (operation)

{

case '+':

    printf("%0.1lf+%0.1lf=%0.1lf\n", a, b, a+b);

    break;

case '*':

    printf("%0.1lfx%0.1lf=%0.1lf\n", a, b, a*b);

    break;

case '-':

    printf("%0.1lf-%0.1lf=%0.1lf\n", a, b, a-b);

    break;

case '/':

    printf("%0.1lf÷%0.1lf=%0.1lf\n", a, b, a/b);

    break;

case 'x':

    printf("%0.1lfx%0.1lf=%0.1lf\n", a, b, a*b);

    break;

case '÷':

    printf("%0.1lf÷%0.1lf=%0.1lf\n", a, b, a/b);

    break;


default:

    printf("Please enter a valid oparator such as * / + - x ÷\n");

}

    return 0;

}

our 1st month anniversary



FRII PROGRAMING QUIZ




2nd Class 26/10/2022 [FRII]


HTML code of 26.10.2022:

First of all make 3 files named index.html, style.css & login.html. Then paste these codes to the each files.


index.html

<html>

    <head>
     <title>Online Tutor</title>
      <link rel="stylesheet" href="style.css">
    </head>
   
   <body>
    <main>
      <h1>Welcome to our website</h1>
      <h2>Welcome to our website</h2>
      <h3>Welcome to our website</h3>
      <h4>Welcome to our website</h4>
      <h5>Welcome to our website</h5>
      <h6>Welcome to our website</h6>
      <h1 id="header">Welcome to our wesite</h1>
      <p id="para_1">I love my county. The name of my country is <b>Bangladesh</b>.
      The name of my country is <b>Bangladesh</b>. The name of my country is <b>Bangladesh</b>
      The name of my country is <b><u><i>Bangladesh</i></u></b></p> <p> Hello Bangladesh.</p>
      <button><a href="login.html">Login</a></button>

    </main>
  
    </body>
   </html>

style.css
h1{
    color: red;
}

#header{
    color: blue;
}

#para_1{
    color: green;
    font-size: 20px;
}
 

Iogin.html

<html>
    <body>
        <h1>Please Login</h1>
    </body>
</html>

Screenshots

Simple Calculator [C]

Hey there coders welcome to cyber assassin's. I am Lyc from cyber assassin's. The post is about making a simple calculator using "C" programing language.


#Here is the code:

#include <stdio.h>
int main()
{
    char operation;
    double a, b;
    printf("Enter the first number\n");
    scanf("%lf", &a);
    printf("Enter the operation you want to do. It must be + - x ÷\n");
    scanf(" %c", &operation);
    printf("Enter the second number\n");
    scanf("%lf", &b);

switch (operation)
{
case '+':
    printf("%.2lf+%.2lf=%.2lf\n", a, b, a+b);
    break;
case '*':
    printf("%.2lfx%.2lf=%.2lf\n", a, b, a*b);
    break;
case '-':
    printf("%.2lf-%.2lf=%.2lf\n", a, b, a-b);
    break;
case '/':
    printf("%.2lf÷%.2lf=%.2lf\n", a, b, a/b);
    break;
case 'x':
    printf("%.2lfx%.2lf=%.2lf\n", a, b, a*b);
    break;
case '÷':
    printf("%.2lf÷%.2lf=%.2lf\n", a, b, a/b);
    break;

default:
    printf("Please enter a valid oparator such as + - x ÷\n");
}
    return 0;
}

1st Class 29/09/2022 [FRII]



HTML Code:

<html>

 <head>
  <title>FRII</title>
   <style>
    .text {
     color: red;
     }

    .text p {
     color: green;
          }
   </style>
 </head>

<body>
     <div class="text">
       <h2>Wellcome to Faizur Rahman Ideal Institute</h2>
      <p>Faizur Rahman Ideal Institute is located in Dhaka, Bangladesh</p>
     </div>
 </body>
</html>

Trailler




 

Addition [C]


 

Hey coders, I am Agent 47 from Cyber Assassin's. Today we are writing a code which can do a simple math like addition , divide , multiply or minus. so here is the code

 # include <stdio.h>

 int main()

{ int a=40,b=60,sum; sum= a+b; printf("the sum is :%d",sum); return 0; }        

so the program is mainly for basic sum or maths.You all can understand it if you try and run into your compiler. So please try it and also comment your question and result.

I'm giving you a quiz 

 write program that will multiply

(hint: use sum= a*b;).

Multiplication Table [C]

Hey there coders welcome to cyber assassin's. I am Lyc from cyber assassin's. The post is about making a simple multiplication table using c programing language.


#Here is the code:

#include <stdio.h>

int main()
{
    int a, b, c, d, e, f, g, h, i, j, k;
    b = 1;
    c = 2;
    d = 3;
    e = 4;
    f = 5;
    g = 6;
    h = 7;
    i = 8;
    j = 9;
    k = 10;

    printf("Enter the number you want multiplication table of:\n");
    scanf("%d", &a);
    
    printf("Here is the multiplication table of %d\n",a);
    printf("%dx%d=%d\n",a,b,a*b);
    printf("%dx%d=%d\n",a,c,a*c);
    printf("%dx%d=%d\n",a,d,a*d);
    printf("%dx%d=%d\n",a,e,a*e);
    printf("%dx%d=%d\n",a,f,a*f);
    printf("%dx%d=%d\n",a,g,a*g);
    printf("%dx%d=%d\n",a,h,a*h);
    printf("%dx%d=%d\n",a,i,a*i);
    printf("%dx%d=%d\n",a,j,a*j);
    printf("%dx%d=%d\n",a,k,a*k);

    return 0;
}

It looks a little bit clear


#You may follow this one also if you want to save your time...

#include <stdio.h>

int main()
{
    int a, b=1, c=2, d=3, e=4, f=5, g=6, h=7, i=8, j=9, k=10;
    
    printf("Enter the number you want multiplication table of:\n");
    scanf("%d", &a);
    printf("The multiplication table of %d\n",a);
    printf("%dx%d=%d\n",a,b,a*b);
    printf("%dx%d=%d\n",a,c,a*c);
    printf("%dx%d=%d\n",a,d,a*d);
    printf("%dx%d=%d\n",a,e,a*e);
    printf("%dx%d=%d\n",a,f,a*f);
    printf("%dx%d=%d\n",a,g,a*g);
    printf("%dx%d=%d\n",a,h,a*h);
    printf("%dx%d=%d\n",a,i,a*i);
    printf("%dx%d=%d\n",a,j,a*j);
    printf("%dx%d=%d\n",a,k,a*k);
    return 0;
}

That's how you can make a simple multiplication table with C programing language of any number using these codes.


Thanks for visiting........


Hello World [C]

     


Hey there coders welcome to cyber assassin's. I am Agent 47 from cyber assassin's 
the post is about our first c code 
 #include <stdio.h>

int main() 
{
    printf("Hello world");
    return 0;
}

it is the first code for a beginner. In this code you have written  #include <stdio.h> this is is a statement which is used for all codes for  the language C. In the next line you have written int main() this is for the main code starts from the brackets. and the next line you have given {                 this is called indemnity
                                                                                                                    printf("the statement");
you have to give it because it enlarges the beauty of this code. the printf and the f is for function so the full
meaning of printf means the function for printing. and the return 0; it is for the code is ended here.
so this is the code. Hope you will understand it.

there is a question for all of you that write a code that's output will be "my name is X"

Contact Us

Phone :

+8801716815647
+8801996204467
+8801520731186

Email :

susmoy1025@gmail.com
dishantanjim@gmail.com
sadmansakib7494@gmail.com