Tuesday, 31 May 2016

Write a program that prints a triangle of stars

#include<iostream.h> #include<conio.h> void star_triangle(int height); void main() {       clrscr();       int n;       cout<<"Enter height of triangle: ";       cin>>n;       star_triangle(n);  ...
Share:

Write a program that counts the number of zeros, odd and even numbers.

#include<iostream.h> #include<conio.h> void Count(int arr[], int num); void main() {      clrscr();      int n, num[50];      cout<<"How many numbers you want to enter: ";      cin>>n;      for(int i=0;...
Share:

Write a function that convert binary to decimal

#include <iostream.h> #include<conio.h> void main() {       clrscr();       int a,b,c,f,g,d[32],e[32]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};       unsigned long int deci;       char ch;   ...
Share:

Write a Program that inputs a decimal number and convert it to binary digits.

#include<iostream.h> #include<conio.h> void binary(unsigned long int decimal) {       int remainder;        if(decimal <= 1)       {        cout<<decimal;        return;   ...
Share:

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

About Me

My photo
A group of two, with a little hope of helping beginners to learn how to code :)
Powered by Blogger.

Comments

Facebook

Ad Home

Follow Us

Random Posts

Sponsor

Recent Posts

Header Ads

Popular Posts

Copyright © 2025 Functions in C++ | Powered by Blogger

Design by ThemePacific | Blogger Theme by NewBloggerThemes.com | Distributed By Blogger Templates20