Search found 1 match

by m_helal
Tue Apr 05, 2011 11:41 am
Forum: Volume 102 (10200-10299)
Topic: 10281 - Average Speed
Replies: 39
Views: 22112

10281 - Average Speed

What is the problem in that code ? plz help me

#include<stdio.h>
#include<string.h>
int main()
{
long sec,speed,i,j,temp;
long double distance;
sec=0,speed=0;
distance=0;
char str[100];
while(gets(str))
{
int len = strlen(str);
if(len>8)
{
temp = ((((str[0]-'0')*10)+(str[1]-'0'))*60*60 ...

Go to advanced search