top of page

Search Results

61 items found for ""

  • Windows Short Tricks Part 1

    Windows Shortcut Keys 1. SELECT ALL CTRL + A 2. TO COPY CTRL + C 3. TO PASTE CTRL + V 4. PREVIOUS TABS CTRL + SHIFT + T 5. SHUTDOWN ALT + F4

  • Element Is Present In Series

    #include void main() { int i=0; int a[100]; int se=0,fe; int na[5],cd,sn,n; int count=0; printf("\nEnter range of series : "); scanf("%d",&n); printf("\nEnter first element : "); scanf("%d",&fe); printf("\nEnter common difference : "); scanf("%d",&cd); for(i=0;i

  • Identify Odd, Even & Prime

    #include void main() { int n; int choice; int sum=0,i=1; printf("\nEnter number : "); scanf("%d",&n); printf("\n1 : sum of %d numbers",n); printf("\n2 : product of %d numbers",n); printf("\n3 : check number is even"); printf("\n4 : check number is odd"); printf("\n5 : check number is prime"); printf("\n6 : factors of %d",n); printf("\nEnter your choice : "); scanf("%d",&choice); switch(choice) { case 1: { for(i=1;i<=n;i++) { sum=sum+i; } printf("\nSUM : %d",sum); break; } case 2: { int product=1,i=1; for(i=1;i<=n;i++) { product=product*i; } printf("\nPRODUCT : %d",product); break; } case 3: { if(n%2==0) { printf("\n%d is even",n); } else { printf("\n%d is not even",n); } break; } case 4: { if(n%2==1) { printf("\n%d is odd",n); } else { printf("\n%d is not odd",n); } break; } case 5: { int count=0,i; for(i=1;i<=n;i++) { if(n%i==0) { count=count+1; } } if(count==2) { printf("\n%d is prime",n); } else { printf("\n%d is not prime",n); } break; } case 6: { int count=0,i; printf("Factors of %d : ",n); for(i=1;i<=n;i++) { if(n%i==0) { printf(" %d",i); } } break; } } }

  • Number Of Open Doors

    #include #include #define N 100 int main() { bool doors[N] = {false}; int i, j; for (i = 1; i <= N; i++) { for (j = i - 1; j < N; j += i) { doors[j] = !doors[j]; } } printf("Doors that are open:\n"); for (i = 0; i < N; i++) { if (doors[i]) { printf("%d = close \n", i + 1); } } return 0; }

  • What Are Datatypes

    Data types : Data types refer to the type of value a variable can store. In computer programming, variables can be classified based on the data type of the value they store. Some common data types include: Integer: a whole number, either positive or negative (e.g. 42, -100). Float: a real number, with a decimal point (e.g. 3.14, -0.01). String: a sequence of characters (e.g. "hello", "goodbye"). Boolean: a value that can either be True or False. Array: a collection of values of the same data type. Dictionary: a collection of key-value pairs, where each key is associated with a value. Object: a user-defined data structure that can contain data and functions. These data types can be specific to a programming language, and some programming languages may have additional data types not listed here.

  • One Person One Job

    #include void main() { int people, job; int pc=0, jc=0,flag=0; printf("\nEnter the limit of people : "); scanf("%d",&people); printf("\nEnter the limit of jobs : "); scanf("%d",&job); int a[people][job]; int res[people][job]; for(pc=0;pc

  • What Is CSS

    CSS (Cascading Style Sheets) is a style sheet language used for describing the look and formatting of a document written in HTML (HyperText Markup Language). It plays a crucial role in the development of modern websites and has become an essential tool for web developers and designers. Before the introduction of CSS, web developers used HTML to define both the content and the presentation of a web page. This made it challenging to manage the appearance of a website, as changes had to be made on every individual page. With CSS, the presentation of a web page is defined in a separate style sheet, which can be linked to multiple HTML pages. This allows web developers to make global changes to the appearance of a website by updating a single style sheet, making it much more efficient. CSS enables web developers to control the layout of a web page, including the placement of elements, the size of text, and the background color. It also allows for the use of different fonts styles and sizes, as well as the ability to apply hover effects and animations. These features add a level of interactivity and visual interest to a website that was not possible with HTML alone. CSS also provides a way to control the appearance of a website across different devices, including desktop computers, tablets, and smartphones. With responsive design, CSS media queries are used to apply different styles based on the screen size of the device. This ensures that a website looks and functions correctly on any device, improving the user experience. In conclusion, CSS is a crucial tool in the development of modern websites. It separates the content and presentation of a web page, making it easier to manage and update the look of a website. With CSS, web developers have the power to control the layout, appearance, and interactivity of a web page, providing a better user experience for visitors.

  • What Is HTML

    HTML stands for Hypertext Markup Language. It is a markup language used to structure and present content for the World Wide Web. HTML is a language used for creating websites and web applications. HTML is used to describe the structure of a website and its content, and it is written in the form of HTML elements. HTML elements consist of tags and their attributes. The tags are used to define the structure and content of a webpage, while the attributes provide additional information about the elements.HTML is used to create webpages and applications, and it is an important part of the web development process. HTML provides the structure that allows web browsers to interpret and display content correctly. HTML also allows for the addition of multimedia content, such as images, audio, and video.HTML is a powerful language that can be used to create complex websites and web applications. It is used by web developers and web designers to create websites and applications that are both interactive and visually appealing. HTML is an important language for any web developer or designer to learn, as it is the foundation of the web.

  • Missing Number

    #include int main() { int size; printf("\nEnter the size : "); scanf("%d",&size); int a[size]; int i=0,sum=0,n,msng_no; n=size+1; for(i=0;i

  • Sum Of Two Numbers

    #include void main() { int num1, num2, sum; printf("Enter the first number: "); scanf("%d", &num1); // Read the first number from the user printf("Enter the second number: "); scanf("%d", &num2); // Read the second number from the user sum = num1 + num2; // Calculate the sum printf("The sum of %d and %d is %d\n", num1, num2, sum); //Result }

  • Input From User In Python

    a, b, c, d, e, f = input('Enter number : ').split() print('Value of a : ' + a) print('Value of b : ' + b) print('Value of c : ' + c) print('Value of d : ' + d) print('Value of e : ' + e) print('Value of f : ' + f)

  • Search Anything From Any Website In Python

    import webbrowser as wb txt = input('Enter Word To Search : ') print('1. GOOGLE 2. YOUTUBE 3. WIKIPEDIA 4. BLOGGER 5. WIX') website = input('Enter Website Name : ') website.lower() if(website=='google'): wb.open('https://www.google.com/search?q='+txt) if(website=='youtube'): wb.open('https://www.youtube.com/results?search_query='+txt) if(website=='wikipedia'): wb.open('https://en.wikipedia.org/wiki/'+txt) if(website=='blogger'): wb.open('https://codecraze1998.blogspot.com/search?q='+txt) if(website=='wix'): wb.open('https://codecraze1998.wixsite.com/code-craze/search?q='+txt) #We can add more features in this code by our comfortless. I use these five webpages for running the code.

bottom of page