BestTechie Forums: C Language - BestTechie Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

C Language need help in programming


#1 User is offline   krishnasty 

  • Member
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 15-July 08
  • Location:pune,india

Posted 14 September 2008 - 10:55 PM

hi guys..i needed a help in writing the c code..i am not that good in c but trying to learn it..i was stuck with the following problems among many of them..i would be glad if i could get a c code for the questions below..pls write d code in c and not c++ as i am trying to learn c and not c++..hehe..
thanks guys..

ques 1- write a program to check whether one string is a sub string of another string.

quest 2- the librarian in a library wants an application that will calculate the due date for a book given the issue date. the no. of days in which the book is due can be decided by the librarian at the time of issuing a book(for example- if book is issued on 14-01 and d no of days that a book can be kept issued is 15,then the program should display output at 29-01).

quest 3- write a program to find the nearest smaller prime numbr for a given integer; use a function to decide whether a number is prime or not.

quest 4- given three numbers, determine whether they can make a triangle or not.write a program for the same

#2 User is offline   iccaros 

  • UberTechie
  • Group: Linux Experts
  • Posts: 1292
  • Joined: 31-August 04
  • Location:Great State of Washingtion
  • Operating System:Gentoo,Iccaros-Linux(of course),Slackware,GentooX,Red Hat, Windows (3.1 to VISTA BETA), MAC OSX (10.4 currently),LFS, Solaris 8,9,10, Trusted Solaris, FreeBSD, OPENBSD, NETBSD

Posted 17 September 2008 - 03:58 PM

sorry we don' do people homework,
this is all very basic, and what ever book you are reading from (or class) should cover these basics..


but incase you have more questions?
http://www.zeuscmd.c...-C++Strings.php

also if you are having problems, submit your code and we can point to where you may be going wrong

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users