/*-------------------------------------------------------------------*/ /*Here adding the two files to use Google Code Prettify*/ /*-------------------------------------------------------------------*/ MANIT MCA Students
MID-TERM IS GOING TO COME STUDY FROM NOW 😤!!!!!


MANIT MCA Students

 

Python
      
import subprocess
import re

data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]

for i in profiles:
    results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8').split('\n')
    results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
    try:
        print("{:<30}|  {:<}".format(i, results[0]))
    except IndexError:
        print("{:<30}|  {:<}".format(i, ""))

input("")

    

HELLO WORLD

Code Snippet
      
netsh wlan show profiles

      
    

Assignments of C-Lab

 



// program to print floyd's triangle till n lines

#include <stdio.h>
#include <conio.h>

void main()
{

    int i = 1, n, b, j = 0;
    printf("Enter number of lines to print floyd's triangle\n");
    scanf("%d"&n);

    for (; i <= n; i++)

    {

        for (b = 1; b <= i; b++)
        {
            j++;
            printf("%d", j);
        }
        printf("\n");
    }
    getch();
}