Tutstalk Mobile Sitebar

C Program to Convert Octal to Binary

A C program Program: #include <stdio.h> #include <math.h> long long convertOctalToBinary(int octalNumber); int main() { int octalNumber; printf(“Enter an octal number: “); scanf(“%d”, &octalNumber); printf(“%d in octal = %lld in binary”, octalNumber, convertOctalToBinary(octalNumber)); return 0;…

7 Likes Comment

C Program to Convert Octal Number to Decimal Number

A C program Program: #include <stdio.h> #include long long convertOctalToDecimal(int octalNumber); int main() { int octalNumber; printf(“Enter an octal number: “); scanf(“%d”, &octalNumber); printf(“%d in octal = %lld in decimal”, octalNumber, convertOctalToDecimal(octalNumber)); return 0; }…

5 Likes Comment

C Program to Convert Decimal Number to Binary Number

A C program Program: #include <stdio.h> #include long long convertDecimalToBinary(int n); int main() { int n; printf(“Enter a decimal number: “); scanf(“%d”, &n); printf(“%d in decimal = %lld in binary”, n, convertDecimalToBinary(n)); return 0; }…

6 Likes Comment

C Programming Code To Print Floyd's Triangle.

A C program 1 2 3 4 5 6 7 8 9 10 Program: #include <stdio.h> int main() { int rows, i, j, number= 1; printf(“Enter number of rows: “); scanf(“%d”,&rows); for(i=1; i <= rows;…

6 Likes Comment

C Programming Code To Print Pascal's triangle

A C program 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 Program: #include <stdio.h> int main() { int rows, coef = 1,…

5 Likes Comment

C Programming Code To Inverted full pyramid using *

A C program * * * * * * * * * * * * * * * * * * * * * * * * * Program: #include <stdio.h> int main() { int…

5 Likes Comment

C Programming Code To print pyramid using numbers

A C program 1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 5 6 7 8 9 8 7 6 5 Program: #include <stdio.h> int main() { int…

5 Likes Comment

C Programming Code To print full pyramid using *

A C program * * * * * * * * * * * * * * * * * * * * * * * * * Program: #include <stdio.h> int main() { int…

5 Likes Comment

C Programming Code To Inverted half pyramid using numbers

A C program 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 Program: #include <stdio.h> int main() { int i, j, rows; printf(“Enter number of rows: “); scanf(“%d”,&rows); for(i=rows;…

5 Likes Comment

C Programming Code To Inverted half pyramid using *

A C program * * * * * * * * * * * * * * * Program: #include <stdio.h> int main() { int i, j, rows; printf(“Enter number of rows: “); scanf(“%d”,&rows); for(i=rows;…

5 Likes Comment
© 2020 Programming Examples - A Product by RSMania