Click here to Skip to main content
14,361,750 members

C / C++ / MFC

 
QuestionRe: Doubt Pin
Richard MacCutchan20-Jun-15 22:14
protectorRichard MacCutchan20-Jun-15 22:14 
AnswerRe: Doubt Pin
Member 1177902720-Jun-15 22:21
memberMember 1177902720-Jun-15 22:21 
GeneralRe: Doubt Pin
Richard MacCutchan20-Jun-15 22:33
protectorRichard MacCutchan20-Jun-15 22:33 
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 22:40
memberMember 1177902720-Jun-15 22:40 
GeneralRe: Doubt Pin
Richard MacCutchan21-Jun-15 2:29
protectorRichard MacCutchan21-Jun-15 2:29 
AnswerRe: Doubt Pin
Member 1177902720-Jun-15 22:32
memberMember 1177902720-Jun-15 22:32 
AnswerRe: Doubt Pin
CPallini20-Jun-15 0:41
mveCPallini20-Jun-15 0:41 
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 21:49
memberMember 1177902720-Jun-15 21:49 
#include<stdio.h>
#include<conio.h>
int main()
{
int num=3;

for(int r1=1;r1<=num;r1++)
{
for(int c1=1;c1<=r1;c1++)
{
printf("*");
}
for(int s1=r1;s1<num;s1++)
{
printf(" ");
}
for(int s1=r1;s1<num;s1++)
{
printf(" ");
}
for(int c1=1;c1<=r1;c1++)
{
printf("*");
}
printf("\n");
}
for(int r2=num;r2>=1;r2--)
{
for(int c2=1;c2<=r2;c2++)
{
printf("*");
}
for(int s1=r2;s1<num;s1++)
{
printf(" ");
}
for(int c2=1;c2<=r2;c2++)
{
printf("*");
}
printf("\n");
}
}
sir problem is with last loop??please check it once and report back to me soon.. thankyou
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 21:52
memberMember 1177902720-Jun-15 21:52 
QuestionEvent objects VS Global variables Pin
sourabhmehta17-Jun-15 23:52
membersourabhmehta17-Jun-15 23:52 
AnswerRe: Event objects VS Global variables Pin
Richard Andrew x6418-Jun-15 7:38
professionalRichard Andrew x6418-Jun-15 7:38 
AnswerRe: Event objects VS Global variables Pin
Stephen Hewitt18-Jun-15 7:41
memberStephen Hewitt18-Jun-15 7:41 
QuestionRe: Event objects VS Global variables Pin
David Crow18-Jun-15 10:15
memberDavid Crow18-Jun-15 10:15 
AnswerRe: Event objects VS Global variables Pin
Richard Andrew x6418-Jun-15 10:48
professionalRichard Andrew x6418-Jun-15 10:48 
AnswerRe: Event objects VS Global variables Pin
Stephen Hewitt18-Jun-15 16:42
memberStephen Hewitt18-Jun-15 16:42 
AnswerRe: Event objects VS Global variables Pin
Frankie-C19-Jun-15 7:09
memberFrankie-C19-Jun-15 7:09 
Question[C] possible OOP approach Pin
lukeer17-Jun-15 22:17
memberlukeer17-Jun-15 22:17 
AnswerRe: [C] possible OOP approach Pin
CPallini17-Jun-15 22:25
mveCPallini17-Jun-15 22:25 
AnswerRe: [C] possible OOP approach Pin
Stefan_Lang18-Jun-15 21:36
memberStefan_Lang18-Jun-15 21:36 
AnswerRe: [C] possible OOP approach Pin
cth02721-Jun-15 13:08
membercth02721-Jun-15 13:08 
QuestionSuggestions on real-time video display with drawing Pin
Kiran Satish17-Jun-15 7:08
memberKiran Satish17-Jun-15 7:08 
AnswerRe: Suggestions on real-time video display with drawing Pin
CPallini17-Jun-15 22:06
mveCPallini17-Jun-15 22:06 
GeneralRe: Suggestions on real-time video display with drawing Pin
Kiran Satish23-Jun-15 10:39
memberKiran Satish23-Jun-15 10:39 
GeneralRe: Suggestions on real-time video display with drawing Pin
DEmberton26-Jun-15 4:44
memberDEmberton26-Jun-15 4:44 
QuestionCString.Format anomaly Pin
ForNow17-Jun-15 4:02
memberForNow17-Jun-15 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.