- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 8
- Posts with Downvotes
- 6
- Downvoting Members
- 4
7 Posted Topics
hii fayyaz...its nyc to c u on daniweb...m a new member as well...
heyy everyone....this is aamira shabnam from bangladesh.. i m computer science and engineering student...and i hope to get help from you guyz when i need..
This program is to count the number of words,vowels and consonants of a string.Here is my code.Please post your comment.I do not know whether I need to change anything. [CODE]#include <stdio.h> int main() { char a,b =' '; int vowel=0,c=0,count=0; printf("Please press '*' to terminate.\n\n"); while(scanf("%c",&a)==1) { if(a=='*') break; else …
this is a simple code to test whether a number is prime or not...i dont know y it is taking this much time to execute...can ne1 tell where m mistaking?? heres my code [CODE] #include<stdio.h> #include<math.h> int main() { int a,n,prime,l=2; printf("Please enter a positive integer.\n"); printf("To end the program …
#include<stdio.h> int main() { int i,j,n=10; for(i=1;i<=n;i++){ for(j=1;j<=i;j++){ printf("*"); } printf("\n"); } return 0; }
#include<stdio.h> int main() { int a,b,n; printf("Please enter the number of lines.\n"); scanf("%d",&n); for(a=n;a>0;a--){ for(b=a;b>0;b--){ printf("*"); } printf("\n"); } return 0; }
[CODE]#include<stdio.h> int main() { int i,j,n; printf("Please enter the number of lines.\n"); scanf("%d",&n); for(i=1;i<=n;i++){ for(j=1;j<=i;j++){ printf("*"); } printf("\n"); } return 0; }[/CODE] [CODE]#include<stdio.h> int main() { int a,b,n; printf("Please enter the number of lines.\n"); scanf("%d",&n); for(a=n;a>0;a--){ for(b=a;b>0;b--){ printf("*"); } printf("\n"); } return 0; }[/CODE]
The End.
aamira_s