Month: April 2018

Advertisements
Advertisements
Advertisements

Program to find GCD of two numbers in C language

The following program is to find the GCD or HCF of a number using C Language. GCD is the Greatest Common Divisor that divides a particular number. #include<stdio.h> void main(){ int a,b,i,j; printf(“\n****************************\nprogram to find

Advertisements
Advertisements
Advertisements

Patterns Program Using C Language

The below article consists of different patterns that can be generated using C programs. Code-1: #include<stdio.h> void main(){ int i,j,k; int c=1,v=0; for(i=1;i<=9;i++){ if(i%2!=0){ for(j=i;j<=9;j++) { printf(” “); } for(k=1;k<=i;k++){ c++; if(c%2!=0){printf(“1 “); } else

Advertisements
Advertisements
overthewire
Advertisements
overthewire
%d bloggers like this: