Sponsored By

Sign in to follow this  
krishnasty

C Language

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.com/tutorials/cplusplus/33-C++Strings.php

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this