Posts

C Program largest of three Numbers

C Program to find the largest of three numbers using function. #include <stdio.h> void large( int num1, int num2, int num3); void main() { int num_1,num_2,num_3; printf( "Enter 1st Number = " ); scanf( "%d" , &num_1); printf( "Enter 2nd Number = " ); scanf( "%d" , &num_2); printf( "Enter 3nd Number = " ); scanf( "%d" , &num_3); large(num_1, num_2,num_3); getch(); } void large( int num1 , int num2 , int num3 ) { if ( num1 > num2 ) if ( num1 > num3 ) printf( "The largest number is %d" , num1 ); if ( num3 > num1 ) if ( num3 > num2 ) printf( "The largest number is %d" , num3 ); if ( num2 > num1 ) if ( num2 > num3 ) printf( "The largest number is %d" , num2 );   }

C Program - Even Odd

C Program to find  the number is even or odd. #include <stdio.h> void main() //Start program with library files and and function. { int num; // Declaring the Variable num with Integer datatype. printf( "Enter the Number = " ); // Display the message to user to enter the number. scanf( "%d" , &num); // Input the value written by user and store it in num variable if (num % 2 == 1) // If the remainder remain after dividing by 2 is 1, then it is Odd. printf( "The Number entered %d is Odd." , num); //If the condition is true print The entered number is Odd. else printf( "The Number Entered %d is Even." , num); //If the condition is false, then print the entered number is even. getch(); } // Program Ends

C Program - Greater, less and Equal

C Program to Find the number less than, greater than and equal in two Numbers. #include <stdio.h> //Start program with library files and and function. void main() { int num1,num2; // Declaring the Integer printf( "Enter the First Number = " ); // Display the message to enter first number. scanf( "%d" , &num1); // Input first number. printf( "Enter the Second Number = " ); //Display the message to enter second number. scanf( "%d" , &num2); //input second number. if (num1 == num2) // if 1st number is equal to 2nd number, print Numbers are equal. printf( "First Number %d is equal to Second Number %d" , num1, num2); if (num1 > num2) //if 1st number is greater than 2nd, print first number is greater than second number. printf( "First Number %d is greater than Second Number %d." , num1, num2); if (num2 > num1) // if 2n...

Quiz Game | Python

Image
Here is the programming of simple quiz programming in which you can take test, modify or even delete the questions. You can change the questions by taking the appropriate choices. You can also add as many questions as you want. You can also change the marks of the question. Note- Download both files and keep in same folder. Downloading both files is important for program to work. Dropbox  link -  1.Quiz  - Programming file Dropbox link  - 2.Quiz  - Questions file

Tic Tac Toe game with 16 Boxes|Python

Image
Are you thinking about programming a tic tac toe game using numbers from 1 to 16 then this programming file can help you. Click on the link below to download the file. Google drive link  - http://adf.ly/1PTOEl -  Tic Tac Toe

Writing letters and numbers using turtle|python

Image
Click on the link below to download the program code. NOTE- Keep in mind that the programming is only for few characters and numbers and less than 45 numbers. the programming include capital letter K, A, M, L, D, E, P, S, I, N,G,H  and numbers 7, 0, 3, 6 and if you type the character which is not in the above letters, then it will print star as a default. Enjoy the programming. Google drive link - http://adf.ly/1PTNG9

Convert Decimal to Roman|Python

Image
Download the following file and open it in python idle. http://adf.ly/1PQmJg