Posts

Simple JavaScript Calculator

Image
<html> <body> <table style ="border: 3px solid black";><td> <h1 align="center">Assigment No # 05<br> A Simple JavaScript Calculator<br> Made By Noman Khan MCS (Eve)</h1><br> <hr>     <br/>Enter first number:     <input type="text" id="num1" name="num1"><br> <br>Enter second number:     <input type="text" id="num2" name="num2"><br><br> !-- buttons----! --> <input type="button"value=" + "onclick="addnum()"> <input type="button"value=" - "onclick="minnum()"> <input type="button"value=" x "onclick="mulnum()"> <input type="button"value=" / "onclick="divnum()"> <input type="button"value=" % "onclick="remnum()"> ...

C++ Programing (Combine two arrays into One Array)

Image
Here you will find the solution of combining two arrays into one array: for example: one array input first name : NOMAN and secondname KHAN , both combine into one array named FullName: NOMANKHAN. Display will be NOMANKHAN without spaces. ________________________________________________________________________ #include <iostream.h> #include <conio.h> int main(void) {    char firstName[10];    char lastName[10];    char fullName[20];    cout << "Enter Your first Name: ";    cin >> firstName;    cout << "Enter Your Last Name: ";    cin >> lastName;    int fSize = strlen(firstName);    int lSize = strlen(lastName);    //for full Name array    int index = 0;    //copy firstName array into fullName array    for (int i = 0; i < fSize; i++)    {     fullName[index] = firstName[i...