Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Doubt Pin
Member 1177902720-Jun-15 21:21
Member 1177902720-Jun-15 21:21 
GeneralRe: Doubt Pin
Richard MacCutchan20-Jun-15 21:33
mveRichard MacCutchan20-Jun-15 21:33 
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 21:40
Member 1177902720-Jun-15 21:40 
GeneralRe: Doubt Pin
Richard MacCutchan21-Jun-15 1:29
mveRichard MacCutchan21-Jun-15 1:29 
AnswerRe: Doubt Pin
Member 1177902720-Jun-15 21:32
Member 1177902720-Jun-15 21:32 
AnswerRe: Doubt Pin
CPallini19-Jun-15 23:41
mveCPallini19-Jun-15 23:41 
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 20:49
Member 1177902720-Jun-15 20:49 
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 20:52
Member 1177902720-Jun-15 20:52 
#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");
}
}

problem is with last loop sir??please check it once and report back to me soon
QuestionEvent objects VS Global variables Pin
sourabhmehta17-Jun-15 22:52
sourabhmehta17-Jun-15 22:52 
AnswerRe: Event objects VS Global variables Pin
Richard Andrew x6418-Jun-15 6:38
professionalRichard Andrew x6418-Jun-15 6:38 
AnswerRe: Event objects VS Global variables Pin
Stephen Hewitt18-Jun-15 6:41
Stephen Hewitt18-Jun-15 6:41 
QuestionRe: Event objects VS Global variables Pin
David Crow18-Jun-15 9:15
David Crow18-Jun-15 9:15 
AnswerRe: Event objects VS Global variables Pin
Richard Andrew x6418-Jun-15 9:48
professionalRichard Andrew x6418-Jun-15 9:48 
AnswerRe: Event objects VS Global variables Pin
Stephen Hewitt18-Jun-15 15:42
Stephen Hewitt18-Jun-15 15:42 
AnswerRe: Event objects VS Global variables Pin
Frankie-C19-Jun-15 6:09
Frankie-C19-Jun-15 6:09 
Question[C] possible OOP approach Pin
lukeer17-Jun-15 21:17
lukeer17-Jun-15 21:17 
AnswerRe: [C] possible OOP approach Pin
CPallini17-Jun-15 21:25
mveCPallini17-Jun-15 21:25 
AnswerRe: [C] possible OOP approach Pin
Stefan_Lang18-Jun-15 20:36
Stefan_Lang18-Jun-15 20:36 
AnswerRe: [C] possible OOP approach Pin
cth02721-Jun-15 12:08
cth02721-Jun-15 12:08 
QuestionSuggestions on real-time video display with drawing Pin
Kiran Satish17-Jun-15 6:08
Kiran Satish17-Jun-15 6:08 
AnswerRe: Suggestions on real-time video display with drawing Pin
CPallini17-Jun-15 21:06
mveCPallini17-Jun-15 21:06 
GeneralRe: Suggestions on real-time video display with drawing Pin
Kiran Satish23-Jun-15 9:39
Kiran Satish23-Jun-15 9:39 
GeneralRe: Suggestions on real-time video display with drawing Pin
DEmberton26-Jun-15 3:44
DEmberton26-Jun-15 3:44 
QuestionCString.Format anomaly Pin
ForNow17-Jun-15 3:02
ForNow17-Jun-15 3:02 
AnswerRe: CString.Format anomaly Pin
Richard MacCutchan17-Jun-15 3:13
mveRichard MacCutchan17-Jun-15 3:13 

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.