-
What change is required in the following program so that its output becomes 3,6,11,20,37,......1034?
{geshibot language="c"}#include #include int main() { int a=1,r=2,i; for (i=0;i
-
A Tricky Question
A financial year is start from 1 April of every year and end on 31 March of next year. Write a C program to find number of months and number of days between two dates in a given financial year. E.g if d1=5/4/2012 and d2=23/2/2013 are given, find the no. of days between these two dates.
-
If a,b,c are int variables and a=2, b=4,c=3,d=5, what is the value of the expression
a/b/c*d-a+c*d/b-c. Justify your answer
-
Find the errors in the following program:
{geshibot language="c"}# include int main() { printf("Learning C is not a difficult task"); return(); }{/geshibot}