Skip to main content

Posts

Showing posts with the label class 11 computer science project

Write a C Program to Demonstrate the Working of Keyword long.

 #include<stdio.h> //24. Write a C Program to Demonstrate the Working of Keyword long. void main() {     int a;     long b;     long long c;     double e;     long double f;     printf(" The size of int = %ld bytes \n", sizeof(a));     printf(" The size of long = %ld bytes\n", sizeof(b));     printf(" The size of long long = %ld bytes\n", sizeof(c));     printf(" The size of double = %ld bytes\n", sizeof(e));     printf(" The size of long double = %ld bytes\n\n", sizeof(f)); }

A Disease Detecting Program in python With mysql Databases.

import  time   import  mysql.connector from  mysql.connector  import  errorcode import  datetime from  datetime  import  datetime print ( "To make connection with your pc's mysql please enter your mysql information:" ) user = input ( "Enter your computer's username:" ) pass_ = input ( "Enter your computer's passward:" ) con = mysql.connector.connect( host = 'localhost' , user = user , password = pass_ ) if  con.is_connected():      print ( "Welcome To Disease Detection" ) cur = con.cursor() def   create_db ():      while   True :          try :             cur.execute( "create database hospital" )            ...