Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Want to know about C programs

This is a discussion on Want to know about C programs within the C and C++ forums, part of the Software Development category; What is the C program for the output 0 11 ooo 1111 00000 111111 .......? What is transport matrix in C language? What is the reverse print program in C?...

Go Back   Geeks Talk > Software Development > C and C++
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 06-16-2009
Junior Member
 
Join Date: Jun 2009
Location: india
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
bhimaa is on a distinguished road
Want to know about C programs

What is the C program for the output 0 11 ooo 1111 00000 111111 .......?
What is transport matrix in C language?
What is the reverse print program in C?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-19-2009
Junior Member
 
Join Date: Oct 2008
Location: guntur
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nagarjunat is on a distinguished road
Re: Want to know about C programs

#include<stdio.h> ▲
#include<conio.h> ■

void main() ▒
{ ▒
int i,j,k; ▒
clrscr(); ▒
for(k=1;k<=6;k++) ▒
{ ▒
if(k%2==0) ▒
for(i=1;i<=k;i++) ▒
printf("1"); ▒
else ▒
for(j=1;j<=k;j++) ▒
printf("0"); ▒
} ▒
getch(); ▒
} ▒
Reply With Quote
  #3 (permalink)  
Old 08-27-2009
Junior Member
 
Join Date: Aug 2009
Location: Bangalore
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
raja7799 is on a distinguished road
Re: Want to know about C programs

#include<stdio.h>
main()
{
int n,i,j;
printf("Enter N value\n");
scanf("%d",&n);
for(i=0;i<n;i++)
{
if( i%2 == 0)
{
for(j=0;j<=i;j++)
printf("0");
printf(" ");
}
else
{
for(j=0;j<=i;j++)
printf("1");
printf(" ");
}
}
printf("\n");
}
Reply With Quote
The Following User Says Thank You to raja7799 For This Useful Post:
  #4 (permalink)  
Old 09-29-2009
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 203
Thanks: 2
Thanked 17 Times in 15 Posts
Barbie is on a distinguished road
Re: Want to know about C programs

j=1;
while (j<=n)
{
k=0;
while (k++ <= j) printf("0");
j++;
k=0;
while (k++ <= j) printf("1");
j++;
}
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Overloading Sub Programs. babi_geek Oracle 2 06-09-2008 06:17 AM
Need free software for C programs srinivasa.dinesh C and C++ 5 04-16-2008 06:41 AM
Uninstall programs easily. JobHelper Geeks Lounge 0 03-19-2008 06:00 AM
JDK 1.4 programs on JDK6 JobHelper Java 1 12-15-2006 05:58 AM
Graphics Programs Remasri Windows 1 09-13-2006 02:14 PM


All times are GMT -4. The time now is 12:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved