am trying to count word . fgets take input if its find space or . or , then word count++ if it find multiple space or . or , then increasse value i till find letter.
but i couldn't get my 2nd ques...
Type: Posts; User: raihan004
am trying to count word . fgets take input if its find space or . or , then word count++ if it find multiple space or . or , then increasse value i till find letter.
but i couldn't get my 2nd ques...
Am tyring to solve simple string related problem.Its almost solve but i faced some problem and can't understand.so i need your help for get my soluton .
here is my coding
#include<stdio.h>...
i can calculate gcd between 2 and 3 number but how can i calculate gcd multiple nuber i,e 10 number 20 number .
i need logic and idea. possibly help me for coding.
here is my effort. i want to...
i solve this problem . if any wrong about my logic please repaly or notify me thanks all
#include<stdio.h>
int main()
{
int y,m,n=0,i,x=0;
scanf("%d",&y);
now i inlcude my tried attetmp code . now make me my code fullfill and make clear concept
sorry am new. can't i ask any problem solution code ? what is my fault?
Problem Name: Y = MX
Everyone know that the equation of a straight line is Y = MX + C. But if C = 0, then the straight line is passing through the origin. Here I always put C = 0. So our equation...
#include<stdio.h>
#include<string.h>
int main()
{
char *p;
printf("enter some thing:");
gets(p);
printf("you have typed:%s\n",p);
}