
December 27th, 2012, 01:25 AM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 1
Time spent in forums: 38 m 23 sec
Reputation Power: 0
|
|
|
Help!!!!!! help me break the loop........
now i writing a program to count the num for a person"lila"enter the gate ,other just simply print welcome.so this my code but i dun know how to break the loop .pls help!
Code:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int i,count;
char name[500];
printf("please enter you name:\n");
scanf("%s",name);
if(strcmp(name,"lila")==0)
{
for(i = 1; i <= count; i = i + 1){
printf("number of enter=%d", i);
}
return;
}
else
{
printf("welcome\n");
return 0;
}
}
|