Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~788 People Reached
Interests
Programming........
PC Specs
Windows 7 ultimate
Favorite Forums
Favorite Tags
c x 12
c++ x 1

6 Posted Topics

Member Avatar for Daita
Member Avatar for Daita

[CODE]#include<stdio.h> #include<conio.h> main() { typedef enum y; int c; y colour {RED,WHITE,BLUE,BLACK}; clrscr(); printf("The assigned value is %d\n",RED); printf("The assigned value is %d\n",BLUE); printf("The assigned value is %d\n",BLACK); c=RED+BLACK; printf("RED+BLACK IS %d",c); getch(); }[/CODE] What is wrong with this code please? 

Member Avatar for Daita
0
162
Member Avatar for Daita
Member Avatar for AndreRet
0
22
Member Avatar for Daita

Could we find the largest among three numbers using 'for' and if? I have the following program, please check it #include<stdio.h> main() { int a,b,c,sum=o,i'; printf("enter the numbers"); scanf("%d%d%d",&a,&b,&c); sum=a+b+c; for(i=sum;i<=sum,i--) { if(i==a||i==b||i==c) printf("%d the greatest"); exit(); }}........please clarify the logic if it is correct to the intention..

Member Avatar for Daita
0
146
Member Avatar for degamer106
Member Avatar for Daita
Member Avatar for Shankye
0
109

The End.