Addition of two numbers in javascript
Addition of two numbers in javascript Here you will learn example program of addition of two numbers in javascript language. Addition is the mathematical operation of add joining the values […]
Addition of two numbers in javascript Here you will learn example program of addition of two numbers in javascript language. Addition is the mathematical operation of add joining the values […]
Age calculator program in javascript Here you will learn to create an age calculator program in javascript language. This program takes a birth year as input, calculates the age based
Simple form validation using JavaScript Here you will learn simple form validation using JavaScript with HTML language. What is form in html A Form is a page that includes
What are the differences between http and https Here you will know the differences between http and https protocol. HTTP (Hypertext Transfer Protocol) and HTTPS (Hypertext Transfer Protocol Secure) are
FCFS scheduling program in C Here you will learn FCFS scheduling and the example code of FCFS scheduling program in C language. FCFS Scheduling FCFS (First Come First Served)
Priority Scheduling program in C Here you will learn priority scheduling and the example code of priority scheduling program in c programming. Priority Scheduling Algorithm Priority scheduling algorithm is
Final keyword in Java with example Here you will know use of Final keyword in Java with example code in java programming. What is Final Keyword in Java? The
C program for Recursive Binary & Linear Search Here you will get and learn the program for recursive binary & linear search using C programming language. How to Program
C++ Program to find the sum of odd digits of a number Here you get the example code to find the sum of odd digits of a number in C++
Program to find the sum of odd digits of a number in c++ Read More »
Hollow Pyramid Pattern Here you will learn to print a Hollow Pyramid Pattern in C programming language. Program Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #include <stdio.h> int main() { int i,j,num; printf("Enter a Number to print Square Pattern : "); scanf("%d",&num); for (int i = 0; i < num; i++) { for (int j = 0; j < 2 * (num - i) - 1; j++) { printf(" "); } for (int k = 0; k < 2 * i + 1; k++) { if (k == 0 || k == 2 * i || i == num - 1) { printf("* "); } else { printf(" "); } } printf("\n"); } return 0; } |
Output